Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1
Name and version of the database you are using: MS-SQL Server 2000 OR HSQLDB
I am just wondering...
If it is possible to define a user defined collection Class, and have it interact with Hibernet. In additionally, works exactly same as the Set, List, or Map?
For example:
With the Annotation of @ManyToMany, between Table A and B; Hibernate will create a new Table call A_B with all the required columns.
Therefore, is that possible for me to create a classType called "ListenerSet" which work exactly the same as the Java Set class and create the same Tables. In addtional, with the listener trigger in the class?
(Note that "ListenerSet" can be implement from Set)
Currently, I implement everything as Set. However, when someone modify the DataTable; I would like to notify all the users that DB has been changed and do whatever next.
Thank you for your time....
Jeremy