I\'m using Toplink essentials (JPA) + GlassFish v3 + NetBean 6.9
I have one table with composite primary key:
table (machine) ---------------- |PK ma
If you use annotation @Query, you can use element nativeQuery = true.