[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-624) Autodiscover all @Entity-annotated Classes
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Jun 12 09:57:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27224 ]
Emmanuel Bernard commented on ANN-624:
--------------------------------------
James it does not work that way. Even if classloader scanning was remotely reliable, this is not what you want. Multiple persistence unit per classloader is very common, so a packaging is necessary. Starting from this point, JPA and EntityManager is a natural choice.
> Autodiscover all @Entity-annotated Classes
> ------------------------------------------
>
> Key: ANN-624
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-624
> Project: Hibernate Annotations
> Issue Type: New Feature
> Reporter: James Carman
>
> The EntityManager implementation contains an "autodiscovery" feature that would be nice to have added to the core Hibernate library. Maybe we could add an AnnotationConfiguration.addAutodiscoveredEntities() method?
--
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