We have strictly defined which relationships are CascadeType.MERGE in our app. This plays into our version checking (optimistic locking). So, our CascadeType definitions sometimes have MERGE and sometimes not. This is all great for our OLTP application. However, we also have a requirement to load in data (fine to do it batch offline) in which the relationships might be different. What I'd like to do is tell jpa (or eclipselink) to treat every relationship as CascadeType.MERGE during this batch load. In other words, I want eclipselink to ignore our annotations during this batch load. Is this possible?
Thanks,
Ben