Re: Persisting object and foreign keys

2009-06-29 Thread Craig L Russell
Hi, If the combo box is populated from the database, perhaps you could keep a detached City object around (as a value of a Map corresponding to the name of the city as the key) and when the new Address instance is created, use the detached City instance as the value of the City field in t

Persisting object and foreign keys

2009-06-29 Thread LFS
Hi This is my situation: I have an Address object that I persist/retrieve from the DB. It contains a City object, reperesenting the city on which that address is. City contains State, and State contains Country object (a long N-1 chain). When I'm creating a new address from user input, the user se