Wel you could intercept the method which saves your product, check wether
ANY and NONE shipments are already present in the database and insert them
otherwise. In your 'normal' code for saving the product you replace the
final static objects by the ones persited in the database whenever ANY oder
NO
No, the table is not pre populated. I would like to avoid inserting data
other way than through the application code.
I do believe that inserting two entries is a good solution. But how to
control that in the application code?
Thanks for helping.
Luiz Fernando
2008/10/8 Vincent Ramdhanie <[EMAI
Do you have your preferred ship table pre populated with data? In that case
why not add ANY and NONE as two entries rather than making them static final
objects. So the combo box will display all data in the preferred ship table
including ANY and NONE and there, you do not have to treat them differ
Hi there,
I'm mapping my application to a database usinf JPA tags. I'm with the
following situation:
I have a class Product which has an attribute preferedShip, from the class
Ship.
In the interface, the user chooses a ship from a combobox. The combo lists
all the registered ships and two more o