This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes GenerationType.AUTO Not Working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "GenerationType.AUTO Not Working" Watch "GenerationType.AUTO Not Working" New topic
Author

GenerationType.AUTO Not Working

Ola Daniel
Ranch Hand

Joined: Jul 27, 2005
Posts: 105
My Entity does not generate Keys automatically. Wat could I be doing wrong... my entity code is as follows:



SCJP 1.4, SCWCD 1.4
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler et al, Refactoring: Improving the Design of Existing Code, 1999
 
jQuery in Action, 2nd edition
 
subject: GenerationType.AUTO Not Working
 
Similar Threads
Implementation of association classes and mapping in hibernate
@ManyToOne & @JoinColumn
Identity issue for EJB3.0 Entity along with Hibernate HBM configuration
OneToMany Best Practice
how to use a composite primary key as foreign key