[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-252) Persistence.xml <class> entity does not allow package name to be specified (documentation says it does)

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Dec 1 16:21:04 EST 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-252?page=comments#action_25538 ] 

Emmanuel Bernard commented on EJB-252:
--------------------------------------

I have a unit test showing it does :-)
Do you have a minimal unit test showing it doesn't?

Note that package name does not mean all classes under a given package, it means a package having a package-info.java

> Persistence.xml <class> entity does not allow package name to be specified (documentation says it does)
> -------------------------------------------------------------------------------------------------------
>
>          Key: EJB-252
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-252
>      Project: Hibernate Entity Manager
>         Type: Bug

>   Components: EntityManager
>     Versions: 3.2.0.ga
>  Environment: 3.2.0, Oracle 9i r2
>     Reporter: Kenneth Roe

>
>
> The EntityManager reference documentation indicates that you can specify a package name in the <class> element of persistence.xml.  This does not appear to be the case.
> Section of the documentation that says package names will work: 
> "The class element specifies a fully qualified class name that you will map. By default all properly annotated classes and all hbm.xml files found inside the archive are added to the persistence unit configuration. You can add some external entity through the class element though. As an extension to the specification, you can add a package name in the <class> element (eg <class>org.hibernate.eg</class>)."

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