spring - Can .hbm files be used in a JPA application with Hibernate as JPA provider? -
i'd replace custom bpm implementation activiti or jbpm-5 in product uses hibernate (no jpa) spring persistent layer implementation. unfortunately, both activiti , jbpm5 require jpa(according documentation) , not possible migrate existing hibernate implementation jpa in product.
- is there way configure jpa 2.0(jpa provider hibernate) spring 3 without migrating hibernate implementation jpa (i.e. retain .hbm files) ?
note: i'm aware application not compliant jpa , jpa provider can not used.
- if there way, assume spring jta transaction manager configured proper settings. can application logic , bpm workflow logic executed in single spring transaction?
regarding transactions see activiti spring transaction docs. if cannot port application use jpa, option layer facade on hibernate domain. activiti allows invoke methods on spring managed beans, create facade or utilize existing service layer. take @ sample applications ship activity see how spring integration works.
Comments
Post a Comment