Re: [hibernate-dev] Hibernate EntityManager reusing MC facilities

2009-04-18 Thread Emmanuel Bernard
I have implemented the first part of it (committed in trunk) The scanning process is now abstracted according to an interface similar to the one proposed in this email. I've retrofitted the existing model into this interface. We're just waiting for the implementation on the jboss infra side a

Re: [hibernate-dev] Hibernate EntityManager reusing MC facilities

2009-03-27 Thread Emmanuel Bernard
The URL does change from one call to another so the constructor taking a URL won't work here. Set instead of List, yes that makes sense. /** * return all packages in the jar matching one of these annotations * if annotationsToLookFor is empty, return all packages */ Set getPackagesInJar(URL ja

[hibernate-dev] Hibernate EntityManager reusing MC facilities

2009-03-27 Thread Emmanuel Bernard
I have been chatting with Ales and here is the contract that HEM could rely on to scan entities and DD files. Context: An EntityManagerFactory (EMF) is bootstrapped by the container by passing a PersistenceUnitInfo class http://anonsvn.jboss.org/repos/hibernate/jpa-api/trunk/src/main/java/ja