Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: From Hibernate to straight JPA Date: Mon, 27 Jul 2015 22:18:29 -0400 Organization: Aioe.org NNTP Server Lines: 37 Message-ID: References: <87egkfhodv.fsf@Equus.decebal.nl> <55a84fdd$0$302$14726298@news.sunsite.dk> <87mvyvyzyw.fsf@Equus.decebal.nl> NNTP-Posting-Host: bLmKSxgyEsD8qtT7wjgUDQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32170 On 7/17/2015 4:01 AM, Cecil Westerhof wrote: > 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. That is easy. >>> 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. And probably do not even answer the specific question. Arne