// Create a developer employer
DeveloperEmployer developerEmployer = new DeveloperEmployer();
developerEmployer.setIdEmployer(BigDecimal.valueOf(5));
developerEmployer.setNameEmployer("ANONYMOUS");
// Create a developer
Developer developer = new Developer();
developer.setIdDeveloper(BigDecimal.valueOf(5));
developer.setNameDeveloper("ANONYMOUS");
developer.setIdDeveloperLevel(developerLevel);
developer.setIdDeveloperEmployer(developerEmployer);
// Add relations
Set<Developer> developers = new LinkedHashSet<Developer>();
developers.add(developer);
developerLevel.setDeveloperCollection(developers);
developerEmployer.setDeveloperCollection(developers);
this.myDao.createDeveloper(developer);
System.out.printf("Developer '%s' and relations added !", developer
.getNameDeveloper());
}