Ich bin nach und nach die hbm files durchgegangen und konnte das Problem auf die many-to-one Beziehungen reduzieren.
Die Lösung ist: Für alle many-to-one muss lazy auf false gesetzt werden, dann funktioniert es
@Axel um auf deine Frage mit dem hbm's zurück zu kommen.
Ich hänge die Jar Datei mit an, diese liegt bei mir auf dem Server im Verzeichnis jvm/lib/ext.
Btw, alle Jar´s, die Hibernate benötigt natürlich auch.
Der MySQL Server läuft bei mir lokal.
Gruss Thorsten.
12.07.2007 11:58:23 HTTP JVM: log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
12.07.2007 11:58:23 HTTP JVM: log4j:WARN Please initialize the log4j system properly.
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tcandidate0_.tcandidate_pk as tcandidate1_0_0_, tcandidate0_.salutation as salutation0_0_, tcandidate0_.title as title0_0_, tcandidate0_.firstname as firstname0_0_, tcandidate0_.lastname as lastname0_0_, tcandidate0_.birthname as birthname0_0_, tcandidate0_.birthdate as birthdate0_0_, tcandidate0_.birthplace as birthplace0_0_, tcandidate0_.street_houseno as street9_0_0_, tcandidate0_.postalcode as postalcode0_0_, tcandidate0_.city as city0_0_, tcandidate0_.
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tschool0_.tschool_pk as tschool1_8_0_, tschool0_.schoolcode as schoolcode8_0_, tschool0_.level as level8_0_ from tschool tschool0_ where tschool0_.tschool_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tcountry0_.tcountry_pk as tcountry1_2_0_, tcountry0_.countryname as countryn2_2_0_ from tcountry tcountry0_ where tcountry0_.tcountry_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tinfofrom0_.tinfofrom_pk as tinfofrom1_3_0_, tinfofrom0_.infofrom as infofrom3_0_ from tinfofrom tinfofrom0_ where tinfofrom0_.tinfofrom_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tmstatus0_.tmstatus_pk as tmstatus1_6_0_, tmstatus0_.maritalstatus as maritals2_6_0_ from tmstatus tmstatus0_ where tmstatus0_.tmstatus_pk=?
12.07.2007 11:58:26 HTTP JVM: com.bec.db.na.Tcandidate@3945e52e
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tcandidate0_.tcandidate_fk as tcandidate3_1_, tcandidate0_.tcandidatejob_pk as tcandida1_1_, tcandidate0_.tcandidatejob_pk as tcandida1_1_0_, tcandidate0_.passed as passed1_0_, tcandidate0_.tcandidate_fk as tcandidate3_1_0_, tcandidate0_.tjob_fk as tjob4_1_0_ from tcandidatejob tcandidate0_ where tcandidate0_.tcandidate_fk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tjob0_.tjob_pk as tjob1_4_0_, tjob0_.jobtitle as jobtitle4_0_, tjob0_.year_from as year3_4_0_, tjob0_.year_to as year4_4_0_, tjob0_.deutsch as deutsch4_0_, tjob0_.foreign_lang as foreign6_4_0_, tjob0_.math as math4_0_, tjob0_.wpg as wpg4_0_, tjob0_.physic as physic4_0_, tjob0_.chemistry as chemistry4_0_, tjob0_.apprenticeship as apprent11_4_0_, tjob0_.average as average4_0_, tjob0_.tschool_fk as tschool13_4_0_ from tjob tjob0_ where tjob0_.tjob_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tschool0_.tschool_pk as tschool1_8_0_, tschool0_.schoolcode as schoolcode8_0_, tschool0_.level as level8_0_ from tschool tschool0_ where tschool0_.tschool_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tjob0_.tjob_pk as tjob1_4_0_, tjob0_.jobtitle as jobtitle4_0_, tjob0_.year_from as year3_4_0_, tjob0_.year_to as year4_4_0_, tjob0_.deutsch as deutsch4_0_, tjob0_.foreign_lang as foreign6_4_0_, tjob0_.math as math4_0_, tjob0_.wpg as wpg4_0_, tjob0_.physic as physic4_0_, tjob0_.chemistry as chemistry4_0_, tjob0_.apprenticeship as apprent11_4_0_, tjob0_.average as average4_0_, tjob0_.tschool_fk as tschool13_4_0_ from tjob tjob0_ where tjob0_.tjob_pk=?
12.07.2007 11:58:26 HTTP JVM: Hibernate: select tschool0_.tschool_pk as tschool1_8_0_, tschool0_.schoolcode as schoolcode8_0_, tschool0_.level as level8_0_ from tschool tschool0_ where tschool0_.tschool_pk=?
12.07.2007 11:58:26 HTTP JVM: com.bec.db.na.Tcandidatejob@79a7e52e
12.07.2007 11:58:26 HTTP JVM: com.bec.db.na.Tcandidatejob@78f3a52e