Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: From Hibernate to straight JPA Date: Fri, 17 Jul 2015 10:01:43 +0200 Organization: Decebal Computing Lines: 33 Message-ID: <87mvyvyzyw.fsf@Equus.decebal.nl> References: <87egkfhodv.fsf@Equus.decebal.nl> <55a84fdd$0$302$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="19988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181B37d94yE6n/NLH/JWUA5a1Eh7xB+KRE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fSiBZByNmdJc3ndTH6bXiFLux6w= sha1:dExwFLBggN5n3W2fN9Yfea4JaZc= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:32054 On Friday 17 Jul 2015 02:44 CEST, Arne Vajhøj wrote: > On 7/16/2015 8:15 PM, Lew wrote: >> On Friday, July 10, 2015 at 11:14:09 AM UTC-7, Cecil Westerhof wrote: >>> We are asked to change some software. At the moment one of the >>> things that has to be replaced is Hibernate. They want to use >>> straight JPA, so it is easy to switch from Hibernate, to openJPA, >>> to ... >> >> Hibernate is "straight JPA" if you use it that way. So use it that >> way. But don't use the old-style pre-JPA idioms in Hibernate. > > And they are doing just that but have encountered a specific problem > where a Hibernate API annotation does not have a single JPA API > equivalent - and now they are asking for advice. The client where I am working at the moment did use Hibernate but they want there code to be independent from a JPA implementing library. So they can decide if they want to work with Hibernate, openJPA or another implementation and can replace it on a whim. so we should only use JPA annotations and none of an implementation. >> The best resource for JPA is the Java EE Tutorial, latest edition. > > You believe that answers the very specific question?? That is a bit much and overwhelming, yes. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof