-->
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.  [ 2 posts ] 
Author Message
 Post subject: Advanced damain classes
PostPosted: Wed Feb 17, 2010 4:46 pm 
Newbie

Joined: Mon Jan 18, 2010 6:44 pm
Posts: 11
Hello,

This is my class:

public class InventoryCountDocument {
long id;
String code;
Date createdDate;
Warehouse warehouse;
Employeer employeer;
List<InventoryCountDocumentItem> items;
}

My table should look like this:

create table InventoryCountDocument (
id long primary key,
code varchar2(20),
created_date date,
warehouse_id long (FK),
employeer_id long (FK)
)

So, how should look my inventorycountdocument.hbm.xml ? I don't know what to do with constraints...

Thnx for help!!!


Top
 Profile  
 
 Post subject: Re: Advanced damain classes
PostPosted: Wed Feb 17, 2010 7:13 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
The first chapter in the Hibernate documentation will cover most of what you need: http://docs.jboss.org/hibernate/stable/ ... e/en/html/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.