[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-585?page=co...
]
Shawn Clowater commented on ANN-585:
------------------------------------
Fair enough, understandable that if you don't want to define it then don't use
it.
However, like I said, there is at least 1 3rd party library (APT) that not having the
default defined causes grief. Not sure if there are others, I'll log a bug with them
at the very least.
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira