When using one to many relationship the "bean/model object" requires org.hibernate.collection.PersistentSet class. The problem is the class is not available at the client side. I do not want to include a hibernate library on the client side as it does not make sense. I tried using Dozer ( mapping the object, essentially ripping out the persistentSet ) and it works but it is a bit messy having two objects that are essentially the same. Is their a cleaner way to do this? The object is obviously detached from the database and all I want is to get info gotten from the DB at server side ( i do not need to persist the data, cascade=false). Can this dependency on persistenceSet be turned off somehow if persisting this member is not required? I am looking for a cleaner way to do this. I am using spring/hibernate.
Thanks for any insight.
|