You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "zhouyanming (JIRA)" <ji...@apache.org> on 2009/11/12 07:03:39 UTC

[jira] Created: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
------------------------------------------------------------------------

                 Key: OPENJPA-1382
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
             Project: OpenJPA
          Issue Type: Improvement
    Affects Versions: 2.0.0-M3
         Environment: windows XP,sun jdk6
            Reporter: zhouyanming


please add a file named "javax.annotation.processing.Processor" to META-INF/services
file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6

otherwise we need specific classname use -processor argument

reduce
javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
to
javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated OPENJPA-1382:
----------------------------------

    Fix Version/s:     (was: 2.0.0)
                   2.1.0

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: integration, tooling
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>            Assignee: Pinaki Poddar
>             Fix For: 2.1.0
>
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "zhouyanming (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776866#action_12776866 ] 

zhouyanming edited comment on OPENJPA-1382 at 11/12/09 6:22 AM:
----------------------------------------------------------------

It's works in eclipse also,but need to use absolute path,like  -Aout=D:/workspace/helloworld/.apt_generated,or sources  will generated in eclipse install directory

      was (Author: quaff):
    It's works in eclipse also
  
> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "zhouyanming (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776866#action_12776866 ] 

zhouyanming commented on OPENJPA-1382:
--------------------------------------

It's works in eclipse also

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778406#action_12778406 ] 

Pinaki Poddar commented on OPENJPA-1382:
----------------------------------------

Hi,
  The option to plug meta-data generator tool as a service has been considered. But it was not activated it because we did not know how the users will react if pure javac compilation with OpenJPA library in compiler classpath starts generating a bunch of MyEntity_.java files. 
   Our assumption is only a handful of brave users will start experimenting with new Criteria API and a subset of them will use the typesafe version that requires these automatically generated canonical classes. That is why, the automatic generation is not activated as service.

  But one is always wrong in making any assumption on usage pattern :) 
  


  About location of the generated sources:
   Our first preference was to generate the new MyEnity_.java files in the same directory as in MyEntity.java, by default. 
   But it is not obvious how to determine the directory location of a *.java files in the context an AnnotationProcessor is invoked. Nor the ways to access the javac options such as -sourcepath etc. 
   After a  discussion in this regard [1] and some basic experiments, I concluded that the location of MyEntity.java can only be determined with a specialized API in Sun JDK. Based on that observation, the default location of the generated files are current directory (for non-Sun JDK) and the directory of the original source for Sun JDK.


[1] http://forums.sun.com/thread.jspa?threadID=5398594&tstart=0

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: integration, tooling
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0
>
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated OPENJPA-1382:
----------------------------------

           Component/s: tooling
                        integration
         Fix Version/s: 2.0.0
    Remaining Estimate:     (was: 0.17h)
     Original Estimate:     (was: 0.17h)

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: integration, tooling
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>             Fix For: 2.0.0
>
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "Kevin Sutter (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Sutter reassigned OPENJPA-1382:
-------------------------------------

    Assignee: Pinaki Poddar

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: integration, tooling
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0
>
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-1382) make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods resolved OPENJPA-1382.
-----------------------------------

    Fix Version/s: 2.0.0
                       (was: 2.1.0)
       Resolution: Duplicate

See OPENJPA-1622

> make org.apache.openjpa.persistence.meta.AnnotationProcessor6 as service
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1382
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1382
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: integration, tooling
>    Affects Versions: 2.0.0-M3
>         Environment: windows XP,sun jdk6
>            Reporter: zhouyanming
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0
>
>
> please add a file named "javax.annotation.processing.Processor" to META-INF/services
> file content is org.apache.openjpa.persistence.meta.AnnotationProcessor6
> otherwise we need specific classname use -processor argument
> reduce
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 *.java
> to
> javac -processorpath openjpa-all-2.0.0-SNAPSHOT.jar  *.java

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