[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-619?page=co...
]
Emmanuel Bernard resolved ANN-619.
----------------------------------
Resolution: Fixed
Thanks, the test was perfect. It's fixed now.
@OneToOne in primary key fails
------------------------------
Key: ANN-619
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-619
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.3.0.ga
Environment: PostgreSQL 8
Reporter: Artur Legan
Fix For: 3.3.1
Attachments: jira.zip
I got:
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at one.Start.main(Unknown Source)
[java] Caused by: java.lang.NullPointerException
[java] at
org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1960)
[java] at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1346)
[java] at
org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1731)
[java] at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1768)
[java] at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1229)
[java] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)
[java] at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
[java] at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
[java] at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
[java] at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
[java] ... 2 more
when I tried to run application where i have @OneToOne in composite key (@ManyToOne
worked fine)
I made this code as short as I could, just put path to jars in build.xml and to database
in hibernate.cfg.xml if you want to check it
If I upload to much or to few just let me know, couse it's first time i'm adding
stuff here
I'm posting it because emmanuel told me to do it :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira