users@glassfish.java.net

Re: Problem deploying ManyToOne lazy-fetched Entities

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 06 Jul 2007 15:39:03 +0530

What happens when you deploy without verifier option?

-- Sahoo
glassfish_at_javadesktop.org wrote:
> Hi!
>
> I am working on a litte EJB 3.0 Example with some litte EntityBeans and 1:n mappings. When i use lazy or eager fetching in the OneToMany mappings and eager fetching in the ManyToOne Annotation, everything works fine. Setting the ManyToOne mapping to FetchType.LAZY, the beans won't deploy any more. The message of the verifer is:
> ---
>
> Exception [TOPLINK-60] (Oracle TopLink Essentials - 2.0 (Build b41d-beta2 (04/24/2007))): oracle.toplink.essentials.exceptions.DescriptorException
>
> Exception Description: The method [_toplink_setuser_vh] or [_toplink_getuser_vh] is not defined in the object [test.model.bean.Userproperties].
>
> Internal Exception: java.lang.NoSuchMethodException: test.model.bean.Userproperties._toplink_getuser_vh()
>
> Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[user]
>
> Descriptor: RelationalDescriptor(test.model.bean.Userproperties --> [DatabaseTable(example.userproperties)])
>
> ---
>
> Does not the glassfish server support ManyToOne mappings using lazy fetching?
> [Message sent by forum member 'lembeck' (lembeck)]
>
> http://forums.java.net/jive/thread.jspa?messageID=225459
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>