Error relating to Enums Persistence with Hibernate

2 messages Options
Embed this post
Permalink
Greenhorn2005

Error relating to Enums Persistence with Hibernate

Reply Threaded More More options
Print post
Permalink
Hello all,

I am trying to implement Enums using the code given as from website http://appfuse.org/display/APF/Java+5+Enums+Persistence+with+Hibernate 

But I found error which is given below.............

 Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.appfuse.tutorial.commons.hibernate.GenericEnumUserType, at table: card, for columns: [org.hibernate.mapping.Column(card_status_type)]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:405)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)




Can anyone give me idea on how to correct the problem?????

Thanks
Green Horn
mraible

Re: Error relating to Enums Persistence with Hibernate

Reply Threaded More More options
Print post
Permalink
Please ask these types of questions on the user list. This list is for  
developing AppFuse, not using it.

Thanks,

Matt

On May 5, 2009, at 6:29 AM, Greenhorn2005 <[hidden email]> wrote:

>
> Hello all,
>
> I am trying to implement Enums using the code given as from website
> http://appfuse.org/display/APF/Java+5+Enums+Persistence+with+Hibernate
>
> But I found error which is given below.............
>
> Invocation of init method failed; nested exception is
> org.hibernate.MappingException: Could not determine type for:
> org.appfuse.tutorial.commons.hibernate.GenericEnumUserType, at  
> table: card,
> for columns: [org.hibernate.mapping.Column(card_status_type)]
>        at
> org.
> springframework.
> beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:405)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
> org.
> springframework.
> beans.
> factory.
> support.
> AbstractAutowireCapableBeanFactory.
> createBean(AbstractAutowireCapableBeanFactory.java:380)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory
> $1.getObject(AbstractBeanFactory.java:264)
>        at
> org.
> springframework.
> beans.
> factory.
> support.
> DefaultSingletonBeanRegistry.
> getSingleton(DefaultSingletonBeanRegistry.java:220)
>
>
>
>
> Can anyone give me idea on how to correct the problem?????
>
> Thanks
> Green Horn
> --
> View this message in context: http://www.nabble.com/Error-relating-to-Enums-Persistence-with-Hibernate-tp23386529s2369p23386529.html
> Sent from the AppFuse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]