Thank you, Gareth!

I'm sure that this explains much better that problem.
I will try next time.

Please, update the Appfuse 2.0 Wiki, there are a article there about this
issue.

--
celeraman +


Gareth Davis wrote:
> 
> I'm sure I'm missing something here. Doesn't hibernate support enums  
> anyway?
> 
>  From my current AppFuse based project:
> 
> @Entity
> @Table(name = "assets")
> public class Asset extends BaseObject {
> // ...
>       @Enumerated(EnumType.STRING)
>       @Column(length = 10, nullable=true)
>       private Status status ;
> 
> // getters/setters blah....
> }
> 
> and status is defined as:
> 
> public enum Status {
>     PENDING,
>     INPROGRESS,
>     INCOMPLETE,
>     UPLOADED,
>     COMPLETE,
>     FAILED,
>     PROCESSING
> }
> 
> works just fine.
> 
> Gareth
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Java-5-Enums-Persistence-%3A%3A-How-to-tf3865408s2369.html#a14129381
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to