How can I use a subclass of java.util.Collection in Hibernate associations ?
For example, in a Customer class having an assocation with class Product via methods :
[code]public ProductCollection getProducts()
public void setProducts(ProductCollection products)
[/code]
I have to write an accessor class to convert a Collection coming from Hibernate into a ProductCollection and back. It works this way, but a lot of Hibernate's power with dirty checking and lazy retrieval is lost. Is there a chance Hibernate will support subclasses of java.util.* ? Or are there easier ways ?
Sytze van Koningsveld.
[b]Hibernate version:[/b]
2.1.6
[b]Mapping documents:[/b]
(probably not relevant)
[b]Code between sessionFactory.openSession() and session.close():[/b]
N/A
[b]Full stack trace of any exception that occurs:[/b]
N/A
[b]Name and version of the database you are using:[/b]
N/A
[b]The generated SQL (show_sql=true):[/b]
N/A
[b]Debug level Hibernate log excerpt:[/b]
N/A
|