• Home
  • Java
  • 2D Graphics GUI
  • 3D
  • Advanced Graphics
  • Ant
  • Apache Common
  • Chart
  • Class
  • Collections Data Structure
  • Data Type
  • Database SQL JDBC
  • Design Pattern
  • Development Class
  • EJB3
  • Email
  • Event
  • File Input Output
  • Game
  • Generics
  • GWT
  • Hibernate
  • I18N
  • J2EE
  • J2ME
  • JavaFX
  • JDK 6
  • JDK 7
  • JNDI LDAP
  • JPA
  • JSP
  • JSTL
  • Language Basics
  • Network Protocol
  • PDF RTF
  • Reflection
  • Regular Expressions
  • Scripting
  • Security
  • Servlets
  • Spring
  • Swing Components
  • Swing JFC
  • SWT JFace Eclipse
  • Threads
  • Tiny Application
  • Velocity
  • Web Services SOA
  • XML

Primary Key « JPA « Java






  1. Java
  2. JPA
  3. Primary Key
1.Using System MilliSeconds As Key
2.Use UUID As Primary Key
3.Using Primary Key Column as Joined Column
4.Set Primary Key Joined Column For Secondary Table
5.Set IdClass for Compound Key
6.Set Primary Key By Yourself
7.Sequence Id Generation
8.Relationship On Id
9.Not Nullable ID








10.Mark Entity ID As Generated Value From Table
11.JPA can Create Sequence Table For You
12.Define And Use Compound Primary Key

java2s.com  | © Demo Source and Support. All rights reserved.