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 a table, PERSON and fields: NAME, ADDRESS, PHONE, and TIMESTAMP.
I have an entity bean PERSON with the 4 fields above.
When I insert a row, I want the insert statement to be:
insert into PERSON (NAME, ADDRESS, PHONE) values ("Mary", "111 Maple Lane", "888-888-8888");
Notice that TIMESTAMP is left out...that is because I want the database to fill this in. I want to use the database's default value for this.
Thanks so much.
Joined: Jan 13, 2009
Previously I was working with an entity bean generated from a database table. I just created a new entity bean (not generated from database) and left off the timestamp field. This worked. Thanks for your interest.