Hi,

using OpenJPA with all identity values generated by the datastore does not
trigger the creation of OPENJPA_SEQUENCE_TABLE. However, as soon as a
embeddable class is used, this table is being created although embeddable
classes do not have a persistent identity on their own.

At least this is the situation I get with a mapping that has all entities
relying on generated values of GenerationType.IDENTITY. Introducing an
embeddable class (mapped with @Embeddable, but not with @Entity) leads to
the creation of OPENJPA_SEQUENCE_TABLE, which is unnecessary in my opinion.
This wouldn't be a big deal per se, but it obstructs a quick check whether
all identity fields are mapped correctly (as a correct mapping in my setup
would not trigger creation of the sequence table).

Is this issue worth a JIRA?

Regards,
  Martin Dirichs.

-- 
View this message in context: 
http://n2.nabble.com/OPENJPA_SEQUENCE_TABLE-created-unnecessarily-for-embeddable-classes-tp2787226p2787226.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to