This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have query regarding the primary key generation for entity bean (EJB 2.0) in JBoss Application server.
I am having a table product with product_id and product_name as two columns with product_id as primary key.
I want the product_id to be autogenerated with the user specified format. For example, by defining product_id as auto_increment, it will increment the value with integer data type.
However, I want the primaty key to be String datatype. i want the auotgenerated number plus the string definition.
I want the primary as,