Hi,
When I moved my app from Seam 1.2.1 Ga -> 2.0.Beta1 my ejb makes wrong merges, previously this worked on 1.0, to 1.2.1 wersion, but here i get null's
Take a look:
I got tables mapped like 1:n, one sided
@OrderBy("index ASC") @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY) @JoinColumn(name="Planet_idPlanet") public List<BuildingsProd> getBuildingsProdList() { if (buildingsProdList == null) buildingsProdList = new LinkedList<BuildingsProd>(); return buildingsProdList; }
Planet userPlanet = em.find...
BuildingsProd newStructure = new BuildingsProd(); userPlanet.getBuildingsProdList().add(newStructure); em.merge(userPlanet); em.flush();
Nothing to do with Seam (the version of hibernate has changed between releases IIRC)