Hi,
I have implemented a simple class to replicate some objects between db4o and hibernate. I am using Annotations. here is the mapping code:
@Entity
@Proxy(lazy = false)
public class Individual {
@Id @GeneratedValue(strategy=GenerationType.AUTO)
private long Id;
@Basic
private String name;
// setter and getters ...
}
for the first time is everything OK. I can create an object and replicate it to hibernate. Then I have tried to modify this Object in db4o (reopen ObjectContainer ) and replicate it again to hibernate, but I get this error:
" identifier of an instance of Individual was altered from 3 to 0 " and I can not replicate it to hibernate.
it was wondering that I don`t get any errors , if I try to modify the object in hibernate and replicate it to db4o, but the same process from db4o to hibernate, does not work. The hibernate.cfg.xml file is almost the same as in the examples of dRS.
Thanks 4 any Help.