|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 2498 | minor | always | 03-06-08 08:30 | 03-12-08 10:26 | |
|
|
|||||
| Reporter: | ferg | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.1.6 | ||
|
|
|||||
| Summary: | 0002498: @In with third-party EntityManagerFactory | ||||
| Description: |
(rep by wesley) I've expierenced a wired problen using @PersistenceUnit. ===================Not functional!======================== @Component public class PersistenceStrategy { // @PersistenceContext(unitName = "myunit") // EntityManager em; @PersistenceUnit(unitName = "myunit") EntityManagerFactory emf; ... // using emf, resin said // com.mycompany.PersistenceStrategy.emf: @PersistenceUnit(unitName='myunit') // is an unknown persistence unit. // No matching JPA persistence-units have been deployed } ============================================================ =========================OK================================= @Component public class PersistenceStrategy { @PersistenceContext(unitName = "myunit") EntityManager em; @PersistenceUnit(unitName = "myunit") EntityManagerFactory emf; ... // using emf, just leaving em unused } ============================================================ I'm use Hibernate 3.2 as my persistence layer, with 3.1.s080304 snapshot. Other configurations were normal and simple, as http://wiki.caucho.com/Hibernate [^] recommended. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||