-->
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: Help me in creating a mapping file for my problem
PostPosted: Thu May 05, 2005 9:21 am 
Newbie

Joined: Thu May 05, 2005 8:31 am
Posts: 5
Location: Chennai , India
Hi ,

I've a class as given below. I want to know how to write the mapping file for the same.

public class Objective {
private String ObjectiveId;
private String Objective_Name;
private String Objective_Description;
private String Objective_Owner;
private Objective objective;


public Objective getObjective() {
return objective;
}
public void setObjective(Objective objective) {
this.objective = objective;
}
public String getObjective_Description() {
return Objective_Description;
}
public void setObjective_Description(String objective_Description) {
Objective_Description = objective_Description;
}
public String getObjective_Name() {
return Objective_Name;
}
public void setObjective_Name(String objective_Name) {
Objective_Name = objective_Name;
}
public String getObjective_Owner() {
return Objective_Owner;
}
public void setObjective_Owner(String objective_Owner) {
Objective_Owner = objective_Owner;
}
public String getObjectiveId() {
return ObjectiveId;
}
public void setObjectiveId(String objectiveId) {
ObjectiveId = objectiveId;
}

}

Thanks,
Kumar Matcha.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
http://www.hibernate.org/5.html

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 1:47 am 
Newbie

Joined: Thu May 05, 2005 8:31 am
Posts: 5
Location: Chennai , India
There is a catch in my problem. The component class is not another class, it contains a component of itself. Something like a recursion. How do i write a mapping file for this.

Thanks,
Kumar Matcha.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 2:18 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
recursivity is not a problem, it's exactly the same as if it was another entity, try it

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


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.