Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
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