Hi,
How can i use a same representation of @MappedSuperclass annotation in a HBM?
I have two classes, one class is called DTO and another called Person. Person extends DTO and DTO must not mapping a table in database.
------------
|DTO |
------------ |
code |
version |
------------
^
|
|
------------
Person |
------------|
name |
|
------------
I need use this mapping with one table person in database that contains code, version and name. In annotation i used @MappedSuperclass in class DTO, but now i need create mapping file in XML.
How can i do it?
Thanks!
_________________ Surfing the life!!
|