Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3513

Re: Hibernate

From Steve Sobol <sjsobol@JustThe.net>
Newsgroups comp.lang.java.programmer
Subject Re: Hibernate
Date 2011-05-04 13:19 -0700
Organization Glorb Internet Services, http://www.glorb.com
Message-ID <MPG.282b54bb14a5f6bb98972c@news.justthe.net> (permalink)
References <MPG.282a127c2a93232998972a@news.justthe.net> <sc9wp.8843$Du7.8665@newsfe04.iad>

Show all headers | View raw


In article <sc9wp.8843$Du7.8665@newsfe04.iad>, Arved Sandstrom says...

> Let me make one recommendation, Steve. Especially given that you have
> used Hibernate before, and some time ago. Try not to use Hibernate
> native APIs - stick to JPA. At least in a Java EE environment. I'm not a
> Hibernate guy any more - haven't been since the first few years after it
> came out - but I see that since 3.5 Hibernate has had JPA 2 support, and
> I'd expect that by now it's in pretty good shape.

Yes. Most of what I'm using consists of JPA native APIs, judging by the 
number of javax.persistence imports compared to org.hibernate imports. 
:)

> Why use JPA at all? It's standard. It simplifies your reasoning about
> persistence. Considering that there will still be plenty of need to
> think about caching strategies, and persistent object lifetimes, and
> query optimization, and object relationships, and lazy loading - in any
> API and implementation that you choose - it's not a bad idea to
> standardize and simplify what you can.
> 
> My 2 cents worth.

FWIW I agree completely.



-- 
Steve Sobol - Programming/WebDev/IT Support
sjsobol@JustThe.net

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Hibernate Steve Sobol <sjsobol@JustThe.net> - 2011-05-03 14:24 -0700
  Re: Hibernate Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-04 06:42 -0300
    Re: Hibernate Steve Sobol <sjsobol@JustThe.net> - 2011-05-04 13:19 -0700
    Re: Hibernate Tom Anderson <twic@urchin.earth.li> - 2011-05-04 23:13 +0100
      Re: Hibernate Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-05 13:39 -0300

csiph-web