JPA2 static metamodel fields not generated

1,225 views
Skip to first unread message

ggran...@gmail.com

unread,
Jun 17, 2015, 7:54:29 PM6/17/15
to minute...@googlegroups.com
I generated the BSLA-JPA2 output and when I deployed Hibernate announced this error:

17:43:14,098 ERROR [org.hibernate.jpa.internal.metamodel.MetadataContext] (ServerService Thread Pool -- 51) HHH015011: Unable to locate static metamodel field : com.conflictkinetics.eotc.domain.eotc.EotcSystemActivity_#yearMonth_
17:43:14,099 ERROR [org.hibernate.jpa.internal.metamodel.MetadataContext] (ServerService Thread Pool -- 51) HHH015011: Unable to locate static metamodel field : com.conflictkinetics.eotc.domain.eotc.EotcSystemActivity_#toraSystemName_

Here is the static metamodel - note fields are missing:


Here is the domain object with the fields defined:


Note that the NamedQueries are not generated either.  The only unique thing I could discern about those fields I noted in the image above.

Please advise.

Thanks for the JPA2 alias fix!!!

Regards,
-Greg

Florian Adler

unread,
Jun 19, 2015, 8:43:28 AM6/19/15
to minute...@googlegroups.com
Hi Greg,

You are welcomed.
Thanks for your feed-back.

I think this is because EotcSystemActivity has a composite primary key made of ToraSystemName and YearMonth.
The template for metamodel has to be adapted for this possibility (same as for the JPA2 template for namedQueries).
I try to put it for next release.

Best regards,

Florian.

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "minuteproject".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse minuteprojec...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages