Java Code Geeks » Lukas Eder http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Tue, 21 Apr 2015 19:00:02 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 How JPA 2.1 has become the new EJB 2.0http://www.javacodegeeks.com/2015/04/how-jpa-2-1-has-become-the-new-ejb-2-0.html http://www.javacodegeeks.com/2015/04/how-jpa-2-1-has-become-the-new-ejb-2-0.html#comments Sat, 18 Apr 2015 12:00:47 +0000 http://www.javacodegeeks.com/?p=39240 Beauty lies in the eye of the beholder. So does “ease”: Learn more about SQL Result Set Mappings and handle your native query results with ease: http://t.co/WH4BTlClIP #JPA #Java #JavaEE — Thorben Janssen (@thjanssen123) April 15, 2015 Thorben writes very good and useful articles about JPA, and he’s recently started an excellent series about JPA ...

 

]]>
http://www.javacodegeeks.com/2015/04/how-jpa-2-1-has-become-the-new-ejb-2-0.html/feed/ 2
jOOQ Tuesdays: Vlad Mihalcea Gives Deep Insight into SQL and Hibernatehttp://www.javacodegeeks.com/2015/04/jooq-tuesdays-vlad-mihalcea-gives-deep-insight-into-sql-and-hibernate.html http://www.javacodegeeks.com/2015/04/jooq-tuesdays-vlad-mihalcea-gives-deep-insight-into-sql-and-hibernate.html#comments Fri, 17 Apr 2015 07:00:33 +0000 http://www.javacodegeeks.com/?p=39235 Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month where we interview someone we find exciting in our industry from a jOOQ perspective. This includes people who work with SQL, Java, Open Source, and a variety of other related topics. We have the pleasure ...

 

]]>
http://www.javacodegeeks.com/2015/04/jooq-tuesdays-vlad-mihalcea-gives-deep-insight-into-sql-and-hibernate.html/feed/ 0
It’s the Little Things: The PL/SQL NULL Statement, and why Every Language Should have Onehttp://www.javacodegeeks.com/2015/04/its-the-little-things-the-plsql-null-statement-and-why-every-language-should-have-one.html http://www.javacodegeeks.com/2015/04/its-the-little-things-the-plsql-null-statement-and-why-every-language-should-have-one.html#comments Thu, 16 Apr 2015 07:00:50 +0000 http://www.javacodegeeks.com/?p=39185 Syntax is one of those topics. One of those emotional topics that lead to very very very important discussions. I personally like PL/SQL. It is extremely verbose, and precise. It forces you to adhere to a very strong and rigid type system, slowing you down, which is likely to help you avoid mistakes. There is ...

 

]]>
http://www.javacodegeeks.com/2015/04/its-the-little-things-the-plsql-null-statement-and-why-every-language-should-have-one.html/feed/ 0
How to FlatMap a JDBC ResultSet with Java 8?http://www.javacodegeeks.com/2015/04/how-to-flatmap-a-jdbc-resultset-with-java-8.html http://www.javacodegeeks.com/2015/04/how-to-flatmap-a-jdbc-resultset-with-java-8.html#comments Mon, 13 Apr 2015 13:00:10 +0000 http://www.javacodegeeks.com/?p=39102 You’re not into the functional mood yet? Then the title might not resonate with you – but the article will! Trust me. Essentially, we want this: +------+------+------+ | col1 | col2 | col3 | +------+------+------+ | A | B | C | row 1 | D | E | F | row 2 | G ...

 

]]>
http://www.javacodegeeks.com/2015/04/how-to-flatmap-a-jdbc-resultset-with-java-8.html/feed/ 0
How to Avoid the Dreaded Dead Lock when Pessimistic Locking – And some Awesome Java 8 Usage!http://www.javacodegeeks.com/2015/04/how-to-avoid-the-dreaded-dead-lock-when-pessimistic-locking-and-some-awesome-java-8-usage.html http://www.javacodegeeks.com/2015/04/how-to-avoid-the-dreaded-dead-lock-when-pessimistic-locking-and-some-awesome-java-8-usage.html#comments Thu, 09 Apr 2015 10:00:41 +0000 http://www.javacodegeeks.com/?p=39017 Sometimes you simply cannot avoid it: Pessimistic locking via SQL. In fact, it’s an awesome tool when you want to synchronise several applications on a shared, global lock. Some may think this is abusing the database. We think use the tools you have if they can solve the problem you have. For instance, the RDBMS ...

 

]]>
http://www.javacodegeeks.com/2015/04/how-to-avoid-the-dreaded-dead-lock-when-pessimistic-locking-and-some-awesome-java-8-usage.html/feed/ 0
How to Use Java 8 Streams to Swiftly Replace Elements in a Listhttp://www.javacodegeeks.com/2015/04/how-to-use-java-8-streams-to-swiftly-replace-elements-in-a-list.html http://www.javacodegeeks.com/2015/04/how-to-use-java-8-streams-to-swiftly-replace-elements-in-a-list.html#comments Fri, 03 Apr 2015 16:00:25 +0000 http://www.javacodegeeks.com/?p=38919 Imagine you have a list of items: List<String> books = Arrays.asList( "The Holy Cow: The Bovine Testament", "True Hip Hop", "Truth and Existence", "The Big Book of Green Design" ); (Don’t judge me. Books from this random book generator) Now you’d like to create a new list where the third item only is replaced by ...

 

]]>
http://www.javacodegeeks.com/2015/04/how-to-use-java-8-streams-to-swiftly-replace-elements-in-a-list.html/feed/ 1
Don’t be Fooled by Generics and Backwards-Compatibility. Use Generic Generic Typeshttp://www.javacodegeeks.com/2015/04/dont-be-fooled-by-generics-and-backwards-compatibility-use-generic-generic-types.html http://www.javacodegeeks.com/2015/04/dont-be-fooled-by-generics-and-backwards-compatibility-use-generic-generic-types.html#comments Thu, 02 Apr 2015 22:00:54 +0000 http://www.javacodegeeks.com/?p=38890 I’ve recently had a very interesting discussion with Sebastian Gruber from Ergon, a very early jOOQ customer, whom we’re in close touch with. Talking to Sebastian has lead our engineering team to the conclusion that we should completely rewrite the jOOQ API. Right now, we already have lots of generics for various purposes, e.g.   ...

 

]]>
http://www.javacodegeeks.com/2015/04/dont-be-fooled-by-generics-and-backwards-compatibility-use-generic-generic-types.html/feed/ 1
Hack up a Simple JDBC ResultSet Cache Using jOOQ’s MockDataProviderhttp://www.javacodegeeks.com/2015/03/hack-up-a-simple-jdbc-resultset-cache-using-jooqs-mockdataprovider.html http://www.javacodegeeks.com/2015/03/hack-up-a-simple-jdbc-resultset-cache-using-jooqs-mockdataprovider.html#comments Fri, 27 Mar 2015 14:00:06 +0000 http://www.javacodegeeks.com/?p=38693 Some queries shouldn’t hit the database all the time. When you query for master data (such as system settings, languages, translations, etc.), for instance, you may want to avoid sending the same silly query (and the results) over the wire all the time. For example: SELECT * FROM languages Most databases maintain buffer caches to ...

 

]]>
http://www.javacodegeeks.com/2015/03/hack-up-a-simple-jdbc-resultset-cache-using-jooqs-mockdataprovider.html/feed/ 0
jOOQ vs. Hibernate: When to Choose Whichhttp://www.javacodegeeks.com/2015/03/jooq-vs-hibernate-when-to-choose-which.html http://www.javacodegeeks.com/2015/03/jooq-vs-hibernate-when-to-choose-which.html#comments Wed, 25 Mar 2015 05:40:50 +0000 http://www.javacodegeeks.com/?p=38578 Hibernate has become a de-facto standard in the Java ecosystem, and after the fact, also an actual JavaEE standard implementation if standards matter to you, and if you put the JCP on the same level with ISO, ANSI, IEEE, etc. This article does not intended to discuss standards, but visions. Hibernate shares JPA’s vision of ...

 

]]>
http://www.javacodegeeks.com/2015/03/jooq-vs-hibernate-when-to-choose-which.html/feed/ 4
One Year After Java 8’s Release, IDEs and Compilers are not Fully Ready Yethttp://www.javacodegeeks.com/2015/03/one-year-after-java-8s-release-ides-and-compilers-are-not-fully-ready-yet.html http://www.javacodegeeks.com/2015/03/one-year-after-java-8s-release-ides-and-compilers-are-not-fully-ready-yet.html#comments Fri, 20 Mar 2015 05:46:26 +0000 http://www.javacodegeeks.com/?p=38400 One year ago, on March 18, 2014, Java SE 8 was released, and with it, the bliss of functional programming through lambda expressions and the streams API. These were great news for all of our Java ecosystem, and many people have already upgraded to Java 8. Stack Overflow already yields almost 2500 questions about Java ...

 

]]>
http://www.javacodegeeks.com/2015/03/one-year-after-java-8s-release-ides-and-compilers-are-not-fully-ready-yet.html/feed/ 0