Joined: Mon Jan 29, 2007 5:14 pm Posts: 8 Location: Czech Republic, Europe
|
Hello all!
Hibernate version: al version, 1.2b3
I would like to map single row to two classes and objects. Why I need that?
For instance, a Customer object may be responsible for adding and editing customer data. A CustomerInfo object in the same application may be responsible for providing read-only access to customer data. Both objects will use the same data from the same database and table, but they provide different behaviors.
Hope this is a problem in H. At least when I make HQL "from Object" what class should be instantiated from that row?
Curretnly when I map two classes to one table, got NHibernate.DuplicateMappingException: Duplicate class/entity mapping GxUser
Thank you in advance for responses!
|
|