just another blog
you saved me a big time.
I had the same problem in .NET NHibernate. We were using our custom framewrok which had Id as an object because we wanted to support int, long, guid keys in the future. The simple fix was to adjust our mappings to use
And now it works just fine. In case we decide to move to guid keys, we just have to Find->Replace text in our mappings and won’t have to recompile our framework libraries.
You saved my time!
You can have object, but you have to persist it with @Lob.
Thank you! I didn’t check if it really works, but this sounds good! 😉
Your email address will not be published. Required fields are marked *
Current ye@r *
Leave this field empty