I'd like for someone to do an exercise to go both directions with all of this stuff and make sure the translation is implemented in the conversion scripts and documented in the guide. i.e. figure out what all of the ojb concepts should map to in JPA and then figure out if there are any JPA cascade mappings that should be set for everything (i.e. DETACH if we can get to jpa 2.0).
So something like this:
autoRetrieve=false - there's really no jpa equivalent, except it seems like it would make the most sense to make this a lazy fetch type, maybe make configurable in the script?
autoUpdate=true or object - CascadeType.PERSIST, CascadeType.MERGE
autoUpdate=none - no related cascade types
autoUpdate=false or link - no real JPA equivalent here, should probably treat as autoupdate=none?
autoDelete=true - CascadeType.REMOVE
CascadeType.REFRESH - there is no OJB equivalent to this, so by default should probably always annotate for this?
CascadeType.DETACH - there is no OJB equivalent, should probably always annotate for this?