-->
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 mapping - entity mapped to a database view
PostPosted: Mon Sep 24, 2007 1:43 pm 
Newbie

Joined: Thu Nov 18, 2004 3:35 pm
Posts: 5
Location: Clermont-Ferrand, France
Hi,

I'm trying to map an EJB3 entity to a view in my MySQL database. The only way I found was to create a .hbm.xml mapping file in which I put <class><subselect .../></class>. This seems to work but I need to map enums and I can't use the @Enumerated as I use a mapping file. Is there another strategy to map a database view? If no, is there a simple way to map enums except by implementing a usertype?

Thanks

Nicolas


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.