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: Enum default mapping
PostPosted: Thu May 05, 2011 6:25 am 
Newbie

Joined: Tue Apr 22, 2008 5:26 am
Posts: 6
Location: Milan
I'm using the current default annotation:

@Enumerated(EnumType.STRING)
and
@MapKeyEnumerated(EnumType.STRING)

I think put enum as String is better for my project.

I put all my entities jar in one jar, used as shared api for an using with hibernate and other application which doesn't need hibernate, but need same class which are popolated from XML.
I want to set in my maven pom hibernate-jpa jar as provided. So, when I need the hibernate-jpa jar I declare it in the pom.

Is it possible to set, as default configuration of mapping, in hibernate starting configuration, that all Enum will be mapped as EnumType.STRING?

The problem is have less number of unused libraries in each EAR.

Thanks for any help.


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.