Hi,

I'm using OpenJPA Reverse Mapping Tool in my current project and find it
very useful. However there's one documented functionality that is obviously
missing in the OpenJPA 2.x versions.

According to the docs (Part 3, chapter 7, paragraph 2.1) a table can be
declared as collection table. I would expect that in this case a Java class
annotated as @Embeddable is created. I've made a test and declared a table
as "collection", but got an error message from the tool. I checked the
source code of org.apache.openjpa.jdbc.meta.PropertiesReverseCustomizer
(versions 2.1.0 and 2.1.1) and found out that the value "collection" is not
a valid one for the table type and leads to an IllegalArgumentException.

Is there a way to generate classes from the collection tables? Or generally,
is it possible to generate Embeddables with the reverse mapping tool? Was it
possible in any older OpenJPA version?

Kind regards,
Michael Spiro

Reply via email to