This is a general query I have with relation to hibernate. We have a hibernate2 based persistence layer on a JBOSS server. The API to the
service layer exposes the objects (POJOs)generated by hibernate.
We have a seperate JAVA application using this API, but to my surprise,
the returned POJOs from the API have a dependency on the
net.sf.hibernate.collection.* classes for the collections.
Is there anyway Hibernate can be configured so that it returns the java.util.* implementations of these collections as opposed to its implementation?
BTW we do not use/require lazy initialization.
|