X-Received: by 10.107.16.75 with SMTP id y72mr35018603ioi.3.1447713749375; Mon, 16 Nov 2015 14:42:29 -0800 (PST) X-Received: by 10.182.241.195 with SMTP id wk3mr879obc.8.1447713749353; Mon, 16 Nov 2015 14:42:29 -0800 (PST) Path: csiph.com!xmission!news.glorb.com!i2no4175043igv.0!news-out.google.com!f6ni4648igq.0!nntp.google.com!i2no3987785igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Mon, 16 Nov 2015 14:42:28 -0800 (PST) In-Reply-To: <8761162oln.fsf@Equus.decebal.nl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.16.140.26; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 199.16.140.26 References: <8761162oln.fsf@Equus.decebal.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6233dd9e-e300-4591-b783-33e2cd5f4dee@googlegroups.com> Subject: Re: What to tell in a talk about JPA From: Lew Injection-Date: Mon, 16 Nov 2015 22:42:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:33136 On Friday, November 13, 2015 at 2:47:03 AM UTC-8, Cecil Westerhof wrote: > I am in the middle of migrating a series of applications. One thing is > that JDBC has to be replaced with JPA. I am going to give a > presentation about this on T-DOSE. (The biggest Open Source event in > the Netherlands.) This was/is my first time that I work with JPA. So I > am far from being an expert. What are things that are useful to > mention? The talk is three quarters of an hour and beside JPA I will > also talk about the pitfalls we experienced during the migration. The main thing is that JPA is NOT A DATA-MANIPULATION TECHNIQUE. It is an object-manipulation technique. The single biggest mistake is to use JPA as a wrapper for SQL rather than a persistence mechanism for objects. The second mistake is to keep a 'DataManager' around too long. They should be ephemeral. -- Lew