[hibernate-issues] [Hibernate-JIRA] Created: (METAGEN-68) Some documented options are not recognized, namely, ormXml and addGeneratedAnnotation

Oleksandr Alesinskyy (JIRA) noreply at atlassian.com
Fri Jul 8 08:31:53 EDT 2011


Some documented options are not recognized, namely, ormXml and addGeneratedAnnotation 
--------------------------------------------------------------------------------------

                 Key: METAGEN-68
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-68
             Project: Hibernate Metamodel Generator
          Issue Type: Bug
          Components: documentation, processor
    Affects Versions: 1.0.0.Final
            Reporter: Oleksandr Alesinskyy
            Assignee: Hardy Ferentschik
            Priority: Minor


I use Hibernate 3.6.5.Final (depending on the version 1.0.0.Final of Metamodel Generator).
When I use the following arg-file for javac
{quote}
{noformat}
-d ../../../target/metamodel
-s ../../../target/metamodel
-ApersistenceXml=../../../../../integration/jpa-dao/src/main/resources/META-INF/fbs-persistence.xml
-AormXml=../../../../../integration/jpa-dao/src/main/resources/META-INF/fbs-orm-mapping.xml
-AaddGeneratedAnnotation=true
-proc:only
-cp .;W:/05_tools/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-core/3.6.5.Final/hibernate-core-3.6.5.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-envers/3.6.5.Final/hibernate-envers-3.6.5.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-jpamodelgen/1.0.0.Final/hibernate-jpamodelgen-1.0.0.Final.jar;W:/01_workspace/FFEv2-fbs/bin;W:/05_tools/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar;W:/01_workspace/FFEv2-common/bin
{noformat}
{quote}
metamodel sources are successfully generated but the javac output looks as follows:
{quote}
{noformat}
Note: Hibernate JPA 2 Static-Metamodel Generator 1.0.0.Final
warning: The following options were not recognized by any processor: '[addGeneratedAnnotation, ormXml]'
{noformat}
{quote}
Needless to say the @Generated is absent from the generated files, e.g.
{code}
package com.navteq.ncs.fbs.domain.persistence;

import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;

@StaticMetamodel(ActivationKeyAlgorithmPo.class)
public abstract class ActivationKeyAlgorithmPo_ {

	public static volatile SingularAttribute<ActivationKeyAlgorithmPo, Long> id;
	public static volatile SingularAttribute<ActivationKeyAlgorithmPo, String> name;

}


{code}

Both options are documented here http://docs.jboss.org/hibernate/stable/jpamodelgen/reference/en-US/html_single/#d0e349

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list