Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Generated ID before an entity is persisted?



hello, this is my first post, hope you could help me

my problem is generally about JPA, currently i developing a sales and inventory system for a local corporation in my town. in usual inventory systems, you have the option to add a supplier record. our client wants that in the "Add Supplier" GUI, there is already a generated supplier id (because of the reason that it is their habit to memorize all supplier ids instead of names) displayed, this is all before adding of the supplier record.

any help or redirections is greatly appreciated.