-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How can i use @MappedSuperclass in a HBM file?
PostPosted: Mon Sep 17, 2007 2:28 pm 
Newbie

Joined: Tue Aug 14, 2007 11:47 am
Posts: 6
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!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.