I saw similar issue reported long back for hibernate 2 with key ID
HB-1358 with Resolution : Won't Fix . I am facing similar issue right now in my development. I have a scenario where A is the parent class.
For Eg:
Code:
Class A {}
Class B extends A {}
Class C extends B { }
Class D extends B { }
I am accessing class B using session.get(clazz, object). I have active records in database for class A, class B and class C and I don't have matching record in class D which we can ignore.
When I execute the query in SQL developer, which hibernate is firing while doing get, I am getting records but in hibernate its returning null. And it is happening for only few records.
Is it still bug or Is it taken care of? Please advice and let me know If we can resolve this issue.
Any help is appreciated.
Thanks,
Shruthi