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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Mar 22 02:22:09 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-585?page=all ]
     
Emmanuel Bernard resolved ANN-585:
----------------------------------

     Resolution: Rejected
    Fix Version: 3.3.0.ga

I choose no default on purpose.
if a user doesn't need a custom persister, it will not use @Persister at all.

> 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
>      Fix For: 3.3.0.ga

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