Archive

Archive for the ‘Java’ Category

JPA Annotation Cheatsheet

August 31st, 2010 clickonchris No comments

Whenever I need need help configuring JPA annotations I turn to google, and I always find it difficult to find a good cheatsheet.

Well here is my favorite JPA annotation cheatsheet.  Even though it says Oracle and Toplink it applies to any Spring/JPA/Hibernate technology stack:

http://www.oracle.com/technetwork/middleware/ias/toplink-jpa-annotations-096251.html

Oh yeah, and here’s my tip on using cascades: Never use CascadeType.ALL!  Use MERGE, PERSIST, and maybe REMOVE if you want to cascade your deletes.  CascadeType.ALL will result in poor performance and unintended consequences.

Categories: Java, Programming Tags:

Configuring Jetty, Maven, and Eclipse together with Hot Swap

May 27th, 2010 clickonchris No comments

This tutorial will show you how to setup Jetty in embedded mode, and using Eclipse, attach a debugger to enable True Hot Deployment of code onto your Jetty server.

Click to continue reading “Configuring Jetty, Maven, and Eclipse together with Hot Swap”

Categories: Databases, Java, Programming Tags: