This is because your Interceptor.instantiate() method does not set the identifier that is passed in.

John Kristian wrote:

The code in Hibernate2 -r v21branch got worse (from my point of view) a few days ago, and has stayed worse. Perhaps y'all knew this already, in which case I apologize for this interruption (and trust you'll press the 'Delete' key now). If you'd prefer I posted such trivia elsewhere (or not at all), please let me know. I aim to help.
By 'worse' I mean that the test case test4.zip attached to http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-367 fails thus:


ERROR [Scan] testScan failed
java.lang.NullPointerException
at com.docent.lms.entities.tests.hibernate.Scan.scan(Scan.java:63)
at com.docent.lms.entities.tests.hibernate.Scan.testScan(Scan.java:40)
at com.docent.lms.entities.tests.hibernate.Scan.main(Scan.java:22)

... because association.getId() returned null, I guess. Prior versions of Hibernate2 (since 2.1beta3b) didn't do this.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to