Joined: Tue Oct 19, 2004 8:34 am Posts: 5
|
Hi,
I can't see what I'm doing wrong. So probably somone out there has an idea. I even tried with hibernate 2.1.16 but got the same exception. As there are a lot of people out there who succesfully mapped this kind of classes, I must make some major error :-(
Thanks in advance
Mark
Hibernate version: 2.1.3
Mapping documents: <?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping> <class name="com.siemens.persistent.Editor" table="Bearbeiter" dynamic-update="false" dynamic-insert="false" >
<id name="id" column="Nr" type="java.lang.Long" > <generator class="increment"> </generator> </id>
<property name="email" type="java.lang.String" update="true" insert="true" column="EmailAdr" length="64" not-null="true" unique="true" />
<property name="firstName" type="java.lang.String" update="true" insert="true" column="Vorname" length="32" not-null="true" />
<property name="lastName" type="java.lang.String" update="true" insert="true" column="Name" length="32" not-null="true" />
<property name="phone" type="java.lang.String" update="true" insert="true" column="Telefon" length="32" />
<property name="password" type="java.lang.String" update="true" insert="true" column="Passwort" length="16" not-null="true" />
<property name="departement" type="java.lang.String" update="true" insert="true" column="Abteilung" length="32" />
<set name="groups" table="EditorGruppeMapping" lazy="false" inverse="false" cascade="none" sort="unsorted" >
<key column="fk_Editor" />
<composite-element class="com.siemens.persistent.usermanagement.EditorToGroup" >
<property name="editorName" type="java.lang.String" update="true" insert="true" column="email" length="64" not-null="true" />
<property name="groupName" type="java.lang.String" update="true" insert="true" column="groupName" not-null="true" />
<many-to-one name="Group" column="fk_Group" class="com.siemens.persistent.usermanagement.Group"/> </composite-element>
</set>
</class>
</hibernate-mapping>
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping> <class name="com.siemens.persistent.usermanagement.Group" table="Gruppe" dynamic-update="false" dynamic-insert="false" >
<id name="id" column="Nr" type="java.lang.Long" > <generator class="increment"> </generator> </id>
<property name="name" type="java.lang.String" update="true" insert="true" column="Name" />
<!-- To add non XDoclet property mappings, create a file named hibernate-properties-Group.xml containing the additional properties and place it in your merge dir. -->
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close(): try { Session s = HibernateManager.getInstance().getSession(); g= new Group("MyGroup"); e = new Editor("MyEmail@email.org", "MyPassword", "MyForename", "MySurname", "MyPhonenumber", "MyDepartement"); s.save(e); s.save(g); // Need to save the persistent objects before modifying the collections // because the id will be generated o nsave and the id value is taken for haschCode // generation during hibernates storing in the Sets HashSet set = new HashSet(); set.add(g); e.setGroups(set); EditorToGroup etg = new EditorToGroup(e, g); e.getGroups().add(etg); s.update(e); s.flush(); s.close(); } catch (HibernateException e) { e.printStackTrace(); }
Full stack trace of any exception that occurs: impl.SessionImpl 2379) Could not synchronize database state with session net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.siemens.persistent.usermanagement.EditorToGroup.editorName at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.type.ComponentType.getPropertyValue(ComponentType.java:179) at net.sf.hibernate.type.ComponentType.getPropertyValues(ComponentType.java:205) at net.sf.hibernate.type.ComponentType.nullSafeGetValues(ComponentType.java:164) at net.sf.hibernate.type.ComponentType.nullSafeSet(ComponentType.java:151) at net.sf.hibernate.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:384) at net.sf.hibernate.collection.Set.writeTo(Set.java:226) at net.sf.hibernate.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:523) at net.sf.hibernate.impl.ScheduledCollectionRecreate.execute(ScheduledCollectionRecreate.java:23) at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2418) at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2375) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2240) at com.siemens.persistent.usermanagement.TestEditorGroupMapping.testAddUserToGroup(TestEditorGroupMapping.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96) ... 27 more net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.siemens.persistent.usermanagement.EditorToGroup.editorName at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.type.ComponentType.getPropertyValue(ComponentType.java:179) at net.sf.hibernate.type.ComponentType.getPropertyValues(ComponentType.java:205) at net.sf.hibernate.type.ComponentType.nullSafeGetValues(ComponentType.java:164) at net.sf.hibernate.type.ComponentType.nullSafeSet(ComponentType.java:151) at net.sf.hibernate.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:384) at net.sf.hibernate.collection.Set.writeTo(Set.java:226) at net.sf.hibernate.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:523) at net.sf.hibernate.impl.ScheduledCollectionRecreate.execute(ScheduledCollectionRecreate.java:23) at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2418) at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2375) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2240) at com.siemens.persistent.usermanagement.TestEditorGroupMapping.testAddUserToGroup(TestEditorGroupMapping.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96) ... 27 more
Name and version of the database you are using: Mysql 4.0.20
The generated SQL (show_sql=true): (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Bilder add index FK769A190C6664E47A (KategoryNr), add constraint FK769A190C6664E47A foreign key (KategoryNr) references Kategorie (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table PiDokument add index FK6BE2DB4CFB1B0C80 (variantId), add constraint FK6BE2DB4CFB1B0C80 foreign key (variantId) references Varianten_Definition (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table PiDokument add index FK6BE2DB4C34610D1F (ErstellerId), add constraint FK6BE2DB4C34610D1F foreign key (ErstellerId) references Bearbeiter (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table RohTexte add index FKEC3B81ED951EA3F1 (TextNr), add constraint FKEC3B81ED951EA3F1 foreign key (TextNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table RohTexte add index FKEC3B81EDBE63F898 (SpracheNr), add constraint FKEC3B81EDBE63F898 foreign key (SpracheNr) references Sprache (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GenerierFehler add index FK6B1A7929BF8FDB38 (PiDocumentNr), add constraint FK6B1A7929BF8FDB38 foreign key (PiDocumentNr) references PiDokument (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table PartDefinitionen add index FK41B7E0EFB05A15C (PartTypNr), add constraint FK41B7E0EFB05A15C foreign key (PartTypNr) references PartTypen (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table PartDefinitionen add index FK41B7E0EFDED2B0EF (AbschnittsDefinitionId), add constraint FK41B7E0EFDED2B0EF foreign key (AbschnittsDefinitionId) references AbschnittDefinitionen (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA8438C41942 (ProduktId), add constraint FKACDBEA8438C41942 foreign key (ProduktId) references Produkte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA845D970D0D (KundenNr), add constraint FKACDBEA845D970D0D foreign key (KundenNr) references Kunde (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA84873AB92F (LandNr), add constraint FKACDBEA84873AB92F foreign key (LandNr) references Land (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA842F9A528C (LocalPmNr), add constraint FKACDBEA842F9A528C foreign key (LocalPmNr) references Bearbeiter (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA8433462D2 (Aussteller), add constraint FKACDBEA8433462D2 foreign key (Aussteller) references Bearbeiter (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Varianten_Definition add index FKACDBEA84CBB9B7D1 (textNr), add constraint FKACDBEA84CBB9B7D1 foreign key (textNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Ansicht add index FK30AFEA6C76EA791F (Kategorie), add constraint FK30AFEA6C76EA791F foreign key (Kategorie) references ReportKategorie (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Parts add index FK4952AC025AF5C5E (PartAuswahlNr), add constraint FK4952AC025AF5C5E foreign key (PartAuswahlNr) references PartAuswahlListen (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Parts add index FK4952AC0583C2B96 (AbschnittNr), add constraint FK4952AC0583C2B96 foreign key (AbschnittNr) references Abschnitt (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Parts add index FK4952AC041B7DE2A (PartDefinitionNr), add constraint FK4952AC041B7DE2A foreign key (PartDefinitionNr) references PartDefinitionen (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table AbschnittDefinitionen add index FK4F27B88E38C076F3 (ProductNr), add constraint FK4F27B88E38C076F3 foreign key (ProductNr) references Produkte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10FF98F2439 (TextbausteinUntenLinksNr), add constraint FK7C7EA10FF98F2439 foreign key (TextbausteinUntenLinksNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10F6F593A0D (TextbausteinMitteNr), add constraint FK7C7EA10F6F593A0D foreign key (TextbausteinMitteNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10F7A1480B7 (TextbausteinObenRechtsNr), add constraint FK7C7EA10F7A1480B7 foreign key (TextbausteinObenRechtsNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10FACF239A1 (TextbausteinObenLinksNr), add constraint FK7C7EA10FACF239A1 foreign key (TextbausteinObenLinksNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10F769A1643 (BildNr), add constraint FK7C7EA10F769A1643 foreign key (BildNr) references Bilder (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table GrafikContainer add index FK7C7EA10FC114E91F (TextbausteinUntenRechtsNr), add constraint FK7C7EA10FC114E91F foreign key (TextbausteinUntenRechtsNr) references Texte (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table AttributFilterWerte add index FK48784174C45F0950 (AnsichtNr), add constraint FK48784174C45F0950 foreign key (AnsichtNr) references Ansicht (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table AttributFilterWerte add index FK4878417463DE2B01 (ReportAttributNr), add constraint FK4878417463DE2B01 foreign key (ReportAttributNr) references ReportAttribut (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table SNRGrafikContainerListe add index FK9049538F2D9E69CB (SachnummerNr), add constraint FK9049538F2D9E69CB foreign key (SachnummerNr) references Sachnummern (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table SNRGrafikContainerListe add index FK9049538F7C7EA10F (GrafikContainer), add constraint FK9049538F7C7EA10F foreign key (GrafikContainer) references GrafikContainer (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Produkte add index FKC806537E60DB7E1D (LeadPMNr), add constraint FKC806537E60DB7E1D foreign key (LeadPMNr) references Bearbeiter (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table PartAuswahlListen add index FKC81B7F6141B7DE2A (PartDefinitionNr), add constraint FKC81B7F6141B7DE2A foreign key (PartDefinitionNr) references PartDefinitionen (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table Abschnitt add index FKDBDCE6329FBFE073 (Abschnitte), add constraint FKDBDCE6329FBFE073 foreign key (Abschnitte) references Varianten_Definition (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table EditorGruppeMapping add index FKFD99B6869B430647 (fk_Editor), add constraint FKFD99B6869B430647 foreign key (fk_Editor) references Bearbeiter (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Duplicate key name 'FKFD99B6869B430647'" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table EditorGruppeMapping add index FKFD99B686262D0E65 (fk_Group), add constraint FKFD99B686262D0E65 foreign key (fk_Group) references Gruppe (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Duplicate key name 'FKFD99B686262D0E65'" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table SNrGenerierFolgen add index FK50E3081DBF8FDA8F (PiDocumentId), add constraint FK50E3081DBF8FDA8F foreign key (PiDocumentId) references PiDokument (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 138 ) Unsuccessful: alter table SNrGenerierFolgen add index FK50E3081D9327B477 (SachNr), add constraint FK50E3081D9327B477 foreign key (SachNr) references Sachnummern (Nr) (hbm2ddl.SchemaUpdate 139 ) Invalid argument value, message from server: "Too many keys specified. Max 32 keys allowed" (hbm2ddl.SchemaUpdate 143 ) schema update complete (connection.DriverManagerConnectionProvider 143 ) cleaning up connection pool: jdbc:mysql://localhost/siemens_vcpi?profileSql=true Query "SET autocommit=0" execution time: 0 Hibernate: select this.Nr as Nr0_, this.EmailAdr as EmailAdr0_, this.Vorname as Vorname0_, this.Name as Name0_, this.Telefon as Telefon0_, this.Passwort as Passwort0_, this.Abteilung as Abteilung0_ from Bearbeiter this where 1=1 Query "select this.Nr as Nr0_, this.EmailAdr as EmailAdr0_, this.Vorname as Vorname0_, this.Name as Name0_, this.Telefon as Telefon0_, this.Passwort as Passwort0_, this.Abteilung as Abteilung0_ from Bearbeiter this where 1=1" execution time: 0 result set fetch time: 0 Hibernate: select groups0_.fk_Editor as fk_Editor__, groups0_.email as email__, groups0_.groupName as groupName__, groups0_.fk_Group as fk_Group__, group1_.Nr as Nr0_, group1_.Name as Name0_ from EditorGruppeMapping groups0_ left outer join Gruppe group1_ on groups0_.fk_Group=group1_.Nr where groups0_.fk_Editor=? Query "select groups0_.fk_Editor as fk_Editor__, groups0_.email as email__, groups0_.groupName as groupName__, groups0_.fk_Group as fk_Group__, group1_.Nr as Nr0_, group1_.Name as Name0_ from EditorGruppeMapping groups0_ left outer join Gruppe group1_ on groups0_.fk_Group=group1_.Nr where groups0_.fk_Editor=1" execution time: 0 result set fetch time: 0 Query "rollback" execution time: 0 Query "SET autocommit=0" execution time: 0 Hibernate: delete from Bearbeiter where Nr=? Query "delete from Bearbeiter where Nr=1" execution time: 0 Query "commit" execution time: 0 Query "rollback" execution time: 0 Query "SET autocommit=0" execution time: 0 Query "select max(Nr) from Bearbeiter" execution time: 0 result set fetch time: 0 Query "select max(Nr) from Gruppe" execution time: 10 result set fetch time: 0 Hibernate: insert into Bearbeiter (EmailAdr, Vorname, Name, Telefon, Passwort, Abteilung, Nr) values (?, ?, ?, ?, ?, ?, ?) Query "insert into Bearbeiter (EmailAdr, Vorname, Name, Telefon, Passwort, Abteilung, Nr) values ('MyEmail@email.org', 'MyForename', 'MySurname', 'MyPhonenumber', 'MyPassword', 'MyDepartement', 1)" execution time: 0 Hibernate: insert into Gruppe (Name, Nr) values (?, ?) Query "insert into Gruppe (Name, Nr) values ('MyGroup', 9)" execution time: 0 Hibernate: insert into EditorGruppeMapping (fk_Editor, email, groupName, fk_Group) values (?, ?, ?, ?) Query "insert into EditorGruppeMapping (fk_Editor, email, groupName, fk_Group) values (1, 'MyEmail@email.org', 'MyGroup', 9)" execution time: 0 Hibernate: insert into EditorGruppeMapping (fk_Editor, email, groupName, fk_Group) values (?, ?, ?, ?)
Debug level Hibernate log excerpt:
|
|