[hibernate-issues] [Hibernate-JIRA] Created: (ANN-585) New @Persister annotation doesn't declare a default for impl target

Shawn Clowater (JIRA) noreply at atlassian.com
Tue Mar 20 15:05:08 EDT 2007


New @Persister annotation doesn't declare a default for impl target
-------------------------------------------------------------------

         Key: ANN-585
         URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-585
     Project: Hibernate Annotations
        Type: Bug

  Components: binder  
    Versions: 3.3.0.ga    
    Reporter: Shawn Clowater


Not sure if this is a bug in the Annotations side of things but the new @Persister annotation doesn't define a default for the impl target.  There is at least one 3rd party library that I know of (apt) that dies a horrible death when trying to parse the @Persister annotation.  It blows a Null Pointer Exception when trying to look for the default.

Looking at the other annotations it would seem most if not all define a default.  The drawback is that the default has to be an actual class, it doesn't seem to accept NULL.  I just rolled out into our codebase with a hack that made the default Object.class so that it would compile and parse correctly.  I'm not sure if that's the actual solution or not.  I would think maybe SingleEntityPersister would be a better default perhaps.

-- 
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