users@glassfish.java.net

Re: JoinTable not always updated!!!???

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jun 2007 18:14:29 PDT

It looks like it might be some form of id association perhaps. Really strange using:
@Id
@Column(name="ID", unique=true)
@GeneratedValue( strategy = GenerationType.AUTO )
for the update entity beans I see records with the following ids generated. The record data is duplicated since I was running a test program so it is actually valid.

ID Count Name
2 300 Pier 39 Parking Garage
52 300 Pier 39 Parking Garage
102 500 Pier 39 Parking Garage
53 500 Pier 39 Parking Garage
152 122 Pier 39 Parking Garage
54 122 Pier 39 Parking Garage
202 122 Pier 39 Parking Garage

The sequence of id generation appears weird. Then the in the join table the only entries I see are those of the following sequence.

Garage ID Update ID
Pier 39 Parking Garage 52
Pier 39 Parking Garage 53
Pier 39 Parking Garage 54

What is happening here?
[Message sent by forum member 'samdoyle' (samdoyle)]

http://forums.java.net/jive/thread.jspa?messageID=223625