The JPA specification is silent on the issue of what should happen if a
@TableGenerator refers to a table with no rows in it.

OpenJPA does the sensible thing, which is to insert a new row, with the
specified pkColumnValue and initialValue in it.  Hibernate appears to do
this as well.  However, EclipseLink does not do this.

Did the OpenJPA folks do this because they thought it was a nice thing to
do, or because they were under the impression the specification implied it?

Thanks,
Laird

-- 
http://about.me/lairdnelson

Reply via email to