문제

I'm researching into how to use Hibernate XML mapping files in Play, since I don't really see where I would put them (package structure is very different). I've read about using JPA but all the examples I see use annotations for the mappings.

In my case I want to map to classes that are in a dependency I have, so the Annotations will not work.

Can anyone point to how I could do this in Play2?

Thanks!

도움이 되었습니까?

해결책

I think JPA is getting resources from the classpath. Try putting your mapping in the conf folder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top