-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
When starting the PushEE/UnifiedPush server, Hibernate is generating a few ERRORs, while creating/updating the tables:
2013/08/13 02:14:50,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000388: Unsuccessful: create table Developer (id bigint not null, newPassword varchar(255), password varchar(255), role varchar(255), primary key (id)) 2013/08/13 02:14:50,018 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) Table 'Developer' already exists 2013/08/13 02:14:50,660 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000232: Schema update complete 2013/08/13 02:14:50,779 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-2) HHH000388: Unsuccessful: create table hibernate_sequence ( next_val bigint ) 2013/08/13 02:14:50,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-2) Table 'hibernate_sequence' already exists 2013/08/13 02:14:50,783 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-2) HHH000232: Schema update complete
The reason for this is that the 'Developer' class/entity is present in BOTH persistence units.
- Included in the 'unifiedpush' unit:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/resources/META-INF/persistence.xml#L25
- Explicitly added to the 'picketlink' unit:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/resources/META-INF/persistence.xml#L56