Skip to main content

Manfred Riem

I love working with a broad range of technologies. At work it is mostly JavaEE and JavaSE technologies, as a hobby I do some Java on devices.

 

mriem's blog

Hudson Tip #1 - Doing a release on Hudson using Maven 2

Posted by mriem on September 16, 2008 at 4:00 PM PDT

Introduction

If you haven't figured out how to do a release using Maven 2 within Hudson this will explain it to you so you can set it up and then have a one button release process.

Joining FishCAT

Posted by mriem on August 21, 2008 at 5:00 PM PDT

I am one of the people selected for FishCAT, so let me know what some of the bugs are you think are irritating ;) Or what you think the new version of Glassfish should contain. Or if you already have played around with Glassfish V3 builds, just let me know what worked or did not work for you!

JPA Tip #1 - Native Queries

Posted by mriem on August 22, 2007 at 11:30 AM PDT

OK, native queries in JPA. Not really well documented. Of course I understand that we really should not be doing that, but hey there are times where it is just plain easier.

The following code snippet goes after an Oracle sequence and gets the value.

EntityManager em = this.getEntityManager();
Query query = em.createNativeQuery("SELECT BLOG_ITEM_SEQ.nextval FROM DUAL");