-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Serializable field not included in JPA2 metamodel generation
PostPosted: Tue Mar 19, 2013 1:03 pm 
Newbie

Joined: Tue Mar 19, 2013 12:40 pm
Posts: 1
Location: The Netherlands
When I have Maven generate the JPA2 metamodel for me, using the JPAMetaModelEntityProcessor plugin (from hibernate-jpamodelgen 1.2.0-Final), I found that fields that have type Serializable are not included in the resulting metamodel class.

A simple setup which illustrates this issue can be found here: https://gist.github.com/mauricedchateau/5197848 (sorry, no real link, URLs are disabled...)
This is a minimal POM file with a single entity class, which contains a Serializable field.

If the Serializable field is marked with @Basic - something that is not necessary for the other fields - it is included in the generated class.

Is this the correct behaviour? I would expect that the field would be included without the @Basic annotation as well...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.