Hi Christian, thanks for the clarification, I think that little information was the crucial part missing :)
so +1 :D regards, Achim 2015-04-21 13:12 GMT+02:00 Christian Schneider <[email protected]>: > Closures are not mandatory. The jpa code does not depend on Java 8 apart > from the closure based example of course. > > The JpaTemplate basically works like the sping jms templates or similar. > So without Java 8 you would implement an anon class where you put your code > to be run inside the transaction. In Java 8 closures just make this look > nicer. > > Christian > > > On 21.04.2015 12:52, Achim Nierbeck wrote: > >> Hi, >> >> without having the time to look at it. >> Just one comment that crossed my mind reading it. >> Do you really think using closures is a good idea? >> I know JDK7 is pretty much eol, but a lot of people still are on J7 >> codebase .... >> >> just my 2 cents ;) >> >> regards, Achim >> >> > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
