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: Hibernate mapping
PostPosted: Mon Oct 04, 2004 11:14 am 
Newbie

Joined: Mon Oct 04, 2004 10:54 am
Posts: 15
Hibernate version: 2.1
Name and version of the database you are using: HSQLDB 1.7.2

I need to map the following db model (USING table per class). I've got a table, statistics. Now there is a 1:1 relation between this table and 50 different types of statistics. I need some help generate the hibernate mapping-files for these relations.

EX:

create table statistic
( stat_id integer primary key
, stat_type integer not null
);

create table statistic1
( stat_id references statistic primary key
, ... -- other cols
);
<br>
create table statistic50
( stat_id references statistic primary key
, ... -- other cols
);

regards
Martin


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.