|
|
|
|
Re: Is there an easy way to clone an object? [message #390473 is a reply to message #390472] |
Thu, 13 January 2005 18:55  |
Eclipse User |
|
|
|
Dave Steinberg wrote:
>> The "other implementation" is the proxy that Hibernate instantiates. I
>> have not found a way to tell Hibernate to instantiate my class instead
>> of a proxy.
>
> I see. As I said, if the other implementation actually implements
> EObject, including returning the right result for eClass(), then all
> should be well. If not, I'm not sure what to suggest.
>
> Hopefully Aleksander will let us know if you're on the wrong track. I
> think you both know much more about using Hibernate than I do. ;)
Of course I was on the wrong track!
By default Hibernate tries to be helpful so it materializes objects on a
need-to-use basis (aka lazy). The trick was to ask the classes to not be
lazy, and that produced real objects.
Soo many knobs to turn ;) However I learned about EcoreUtil.
Thank you,
florin
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds