JPA has its puzzles and from time to time it is useful to write
down that tricky solution for our mapping needs.This entry describes a
ManyToMany relationship with an additional state in the intermediate
table. All my examples are related to the Arena-PUJ project, the pet
project I am hard working nowadays. Arena is an online system to manage
academic competitions, and within its several tables...
on Oct 24, 2009
Can you compile, deploy and test your Java EE projects with just
1 line of command? Check it out.
I have no time for documentations lately, but I prefer to give
you a chance to early adopt my build script and take your own
conclusions. Following the steps below, you will have my Java EE 5
application running in your Glassfish v2.1 server - including test data
populated in the MySql database....
on Oct 9, 2009
I have just two arguments to avoid using long as type of the primary keys of JPA Entities:
Integers IDs allow tables with ~2 billion records. Yes, you read well: max(Integer) = 2,147,483,647
the JPA pagination methods only accepts Integers Query setFirstResult(int startPosition) an Query setMaxResults(int maxResult)
Summary:only adopt data types long for your tables...
on Sep 7, 2009