-->
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: Composite key mapping question
PostPosted: Tue Apr 25, 2006 6:23 am 
Newbie

Joined: Fri Apr 21, 2006 2:39 am
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1
MySLQ version 3.4.1

I am using hibernate for our project.I am having a single class
public class sample{
int id ;
String name;
String userName;
boolean vaild;
// Zero argument constructor
//Getters ans setters
}

I need to make the combination of (id, name, userName, valid) as a unique key.
How can write my mapping hibernate.cfg.xml file ?

Thanks and regards,
Ary


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 7:07 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
this is all documented extremely well, and I think your posting in the wrong forum. You should post in the hibernate forum, instead of the Nhibernate forum ;-)


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.