[hibernate-dev] org.hibernate.AnnotationException: No identifier specified for entity

Steve Ebersole steve at hibernate.org
Wed Mar 18 13:06:12 EDT 2015


That sounds reasonable to me.  Create a JIRA if you please.

On Mon, Mar 16, 2015 at 5:31 PM, Stephen Fikes <sfikes at redhat.com> wrote:

>
> https://docs.jboss.org/hibernate/orm/4.2/manual/en-US/html_single/#persistent-classes-pojo-identifier
>
> The link above observes that the requirement to provide an identifier
> for every entity is "... still not (yet) enforced" but "... should be
> considered a deprecated feature as it will be completely required to
> provide a identifier property in an upcoming release."
>
> When using annotations, it seems to be required as far back as 3.3.2.GA.
>
> Perhaps the requirement is not enforced when using hbm.xml ... but is
> only for annotations.
>
> Should we update the document comment to clarify?
>
> Thanks!
> Stephen
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list