Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Metamodel generation of orm.xml-definied entities

Hi Gopal,

I added some addXYZ methods to my model classes, but I cannot see this
error. I have no idea what might be the problem.

-- Frank



gjanjana wrote:
> 
> Hey Frank,
> Just wondering how you are able to get it working? I am getting following
> error
> 
> "Mapping metadata cannot be applied to properties/methods that take
> arguments. The attribute [method addGroup] from class [class
> UserGroupList] is in violation of this restriction. Ensure the method has
> no arguments if it is mapped with annotations or in an XML mapping file."
> 
> I have class userGroupList which is an entity with access type set to
> "Field" not "Property", not sure why is it trying to validate methods. I
> do have method addGroup in that class but it is just a business method 
> that EclipseLink need not worry.
> 
> For your reference, this is how I try to generate the metadata information
> using Ant:
> ------------------------------------------------------
>   <target name="generate-metamodel" >
>         <property name="metaPackage" value="metamodel"/>
>         <delete>
>             <fileset dir="${project.dir}/src"  includes="**/*_.java"/>
>         </delete>
>        <echo message="generating MetaData "/>
>        <javac   srcdir="${project.dir}/src" verbose="true"
>             destdir="${project.dir}/src"
>             classpathref="compile.class.path">
>               <compilerarg line=" -processor
> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" />
>               <compilerarg line=" -proc:only" compiler="javac1.6" />			  
>         </javac>
> 
> </target>
> ------------------------------------------------------
> 
> I have also tried with the eclipse AnnotationProcessor but getting same
> error. Any help is appreciated.
> 
> -gopal
> 
> 

-- 
View this message in context: http://old.nabble.com/Metamodel-generation-of-orm.xml-definied-entities-tp28231392p28281065.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top