Hi,
I have got a lot of POJOs that i store to DB over hibernate. Now i came accross to a problem. When i call merge operation on an object (say class A.class) , the operation returns an object in the same class,that is A.class.
However for some (only one) objects, it returns the proxy for the class, which has toString result as: A$EnhancedBy..... .class
I am using JPA annotations on classes, and all of them are the same (@Entity @Table(name="xyz")).
Does anybody have any idea in what cases hibernate returns proxy object from the merge operation? I cannot find the difference between objects that are returned normally from merge, and the ones returned in the proxy.
Thanx in advance,
Siyamed
|