After the platform is started,
The following error was reported:
Info: Starting Servlet engine:apache tomcat/6.0.14 22:16:42,281 INFO proxoolfacade:86-proxool 0.9.1 (23-aug-2008 11:10) 2 2:16:50,312 Error Schemaupdate:155-unsuccessful:alter Table t_resource add actionclass nvarchar (255) 22:16:50,312 Error schemaupdate:156-the column names in each table must be unique. Column name ' Actionclass ' was specified more than once in table ' T_resource '. 22:16:50,312 ERROR schemaupdate:155-unsuccessful:alter table t_personalmessage add constraint FK47AB1BBC165F6CAC forei GN Key (Bodyid) references t_messagebody 22:16:50,312 ERROR schemaupdate:156-column ' T_messagebody. The data type of ID ' t_personalmessage the Reference column ' in the foreign key ' FK47AB1BBC165F6CAC '. Bodyid ' data type is different. 22:16:50,328 ERROR schemaupdate:155-unsuccessful:alter table t_resource Add constraint fk47d00399eff37830 key ( LinkId) references T_link 22:16:50,328 ERROR schemaupdate:156-column ' T_link. The data type of ID ' T_resource the Reference column ' in the foreign key ' fk47d00399eff37830 '. LinkId ' data type is different. 22:16:52,265 INFO autoauditjobmanager:62-********************* Auto Audit Job Manager Init Jobs Start ****************** * * 22: 16:52,812 INFO mssqldocstatictbldao:91-ms SQL server:select FORMNAME from T_document Doc where Doc. stateint=1114112 GROUP BY FORMNAME
Combined with platform features, looking for the reason:
This is a bug in Hibernate, turn its update SQL off, turn off Hibernate update SQL, and turn this comment off in the hibernate.properties file. Hibernate.hbm2ddl.auto Update "
Why do you want to do this, to learn about the hibernate update features:
When you set up hibernate.hbm2ddl.auto=update in a Hibernate configuration file to add a field to the mapping file when the information for the mapping file is synchronized with the database table structure, a field is added to the datasheet; update just updates the table structure. But not generated. Please refer to the Hibernate.hbm2ddl.auto configuration parameters, there are four: Validate: Load Hibernate, verify the creation of database table structure create: Each load hibernate, recreate the database table structure, This is why the database table data is lost. Create-drop: Create when loading hibernate, exit is delete table structure update: Load Hibernate update database structure automatically