-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to describe the hbm file that has no properties?
PostPosted: Fri Sep 03, 2004 12:57 am 
Newbie

Joined: Mon Aug 30, 2004 11:02 pm
Posts: 3
There are four classes:Family,Cell,Formula and Attribute. As follows:
public Family{
private Integer familyId;
private Cell cell;
//other properties
}
public Cell{
//there are no properties
}
public Formula extends Cell{
private Integer formulaId;
//other properties
}
public Attribute extends Cell{
private Integer attributeId;
//other properties;
}
The database as follows:
create table family{
family_id int not null,
//other fields
primary key(family_id)
}
create table formula{
formula_id int not null,
family_id int,
//other fields
primary key(formula_id)
}
create table attribute{
attribute_id int not null,
family_id int,
//other fields
primary key(attribute_id)
}


How can I describe the four hbm files about these class?


Top
 Profile  
 
 Post subject: Re: How to describe the hbm file that has no properties?
PostPosted: Fri Sep 03, 2004 12:59 am 
Newbie

Joined: Mon Aug 30, 2004 11:02 pm
Posts: 3
lee_sjy wrote:
There are four classes:Family,Cell,Formula and Attribute. As follows:
public Family{
private Integer familyId;
private Cell cell;
//other properties
}
public Cell{
//there are no properties
}
public Formula extends Cell{
private Integer formulaId;
//other properties
}
public Attribute extends Cell{
private Integer attributeId;
//other properties;
}
The database as follows:
create table family{
family_id int not null,
//other fields
primary key(family_id)
}
create table formula{
formula_id int not null,
family_id int,
//other fields
primary key(formula_id)
}
create table attribute{
attribute_id int not null,
family_id int,
//other fields
primary key(attribute_id)
}


How can I describe the four hbm files about these classes?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 3:10 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
just don't map what is related to cell class

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 12:45 am 
Newbie

Joined: Mon Aug 30, 2004 11:02 pm
Posts: 3
thanks


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

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.