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.