HiberObjects

Download

Order

Forum

Vote for this plugin

It is currently Fri Sep 10, 2010 2:25 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Enum support
PostPosted: Mon Jul 14, 2008 6:58 am 
Offline

Joined: Mon Jul 14, 2008 6:37 am
Posts: 1
Location: Mtn View, California
Hi,

I am new to the tool. I was wondering whether there was any support for enumerated types (@Enumerated). I have looked throught the online documentation and topics in this forum but did not find anything on the topic.

Are enumerated types not supported?

Thanks, -Alex


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Enum support
PostPosted: Mon Jul 14, 2008 10:08 pm 
Offline

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 562
Location: Uppsala, Sweden
Hi Alex,

Enumerations are not supported. I'll put it on my list.

/Lars


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Enum support
PostPosted: Sun Oct 04, 2009 6:42 pm 
Offline

Joined: Sun Oct 04, 2009 6:36 pm
Posts: 2
I know this is the wrong forum for feature requests, but since this topic has been discussed here before I thought it would be ok to mention that I too would appreciate the support of Enums in persistent entities.


Report this post
 
 Profile  
Reply with quote  
 Post subject: Me too :-)
PostPosted: Thu Feb 11, 2010 3:48 am 
Offline

Joined: Fri Jan 15, 2010 9:43 am
Posts: 46
Hi Lars,

Yes I would very much like to have enumeration capability too. Is there something now?

The enumeration capability I would like to see it working as an attribute's type in a persistent class. Another capability is to be able to create a new enum just like we can create new classes and new interfaces.

Thanks,
Stephen


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Enum support
PostPosted: Thu Jul 08, 2010 2:00 am 
Offline

Joined: Sun Oct 04, 2009 6:36 pm
Posts: 2
*BUMP*

Hey Lars, did you by any chance have the time and opportunity to work on the enum-support? Your help would be greatly appreciated.


Report this post
 
 Profile  
Reply with quote  
 Post subject: Re: Enum support
PostPosted: Wed Jul 14, 2010 6:59 pm 
Offline

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 562
Location: Uppsala, Sweden
Hi,

Sorry it took so long, but now I have tried it.
It seems to me that enumerations can be used already.
I tried this:
Code:
public enum Gender {
   MALE, FEMALE
}

And:
Attachment:
Enumerated.png
Enumerated.png [ 21.17 KB | Viewed 79 times ]
This worked in a unit test and I exported a schema that got 'gender varchar(255)'.
Without the tag, the schema got 'gender integer'.

Please let me know if anything else is needed.

Regards,
Lars


Report this post
 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


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

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group