Hello,
Thank you for your answer.
Well for now i can only access Person field and 1-1 relationship.
Once i try to do : Person.setFamilyReunionType it doesn’t works
Here a part of the mapping done by Hibernate Tool, not enterly (cannot type the @ here it says i try to mention too much people)
Thank you in advance
/**
*Familyreunion generated by hbm2java
*/
Entity
Table(name = “familyreunion”, catalog = “jobway”)
public class Familyreunion implements java.io.Serializable {
private Integer idFamilyReunion;
private String familyReunionType;
private Set persons = new HashSet(0);
public Familyreunion() {
}
public Familyreunion(String familyReunionType) {
this.familyReunionType = familyReunionType;
}
public Familyreunion(String familyReunionType, Set persons) {
this.familyReunionType = familyReunionType;
this.persons = persons;
}
Id
GeneratedValue(strategy = IDENTITY)
Column(name = “idFamilyReunion”, unique = true, nullable = false)
public Integer getIdFamilyReunion() {
return this.idFamilyReunion;
}
public void setIdFamilyReunion(Integer idFamilyReunion) {
this.idFamilyReunion = idFamilyReunion;
}
Column(name = “FamilyReunionType”, nullable = false, length = 50)
public String getFamilyReunionType() {
return this.familyReunionType;
}
public void setFamilyReunionType(String familyReunionType) {
this.familyReunionType = familyReunionType;
}
ManyToMany(fetch = FetchType.LAZY, mappedBy = “familyreunions”)
public Set getPersons() {
return this.persons;
}
public void setPersons(Set persons) {
this.persons = persons;
}
}
Entity
Table(name = “person”, catalog = “jobway”)
public class Person implements java.io.Serializable {
private Integer idPerson;
private Civilstatus civilstatus;
private Country countryByIdCountry;
private Country countryByIdCountrySpouseNationality;
private Guardmean guardmean;
private Household household;
private Situationterritory situationterritory;
private Worksearch worksearch;
private String personFirstName;
private String personLastName;
private String personNiss;
private String personAdress;
private String personPhone;
private Date personBirthDate;
private String personMail;
private String personGender;
private Date personArrivalDate;
private Boolean personHealthcare;
private boolean personNewsLetterWork;
private int personUnemployementDuration;
private Date personForemInsDate;
private String personOrientation;
private boolean personIsDelete;
private Set locomotionmeans = new HashSet(0);
private Set perFors = new HashSet(0);
private Set incometypes = new HashSet(0);