users@glassfish.java.net

how to create data in datdabase.

From: <glassfish_at_javadesktop.org>
Date: Thu, 26 Nov 2009 03:04:26 PST

In the "bookstore2" of JAVA EE TUTORIAL example, there is annotation
"@Entity" and "@Table(name="WEB_BOOKSTORE_BOOKS")". I know the
"@Entity" means declaring the Entity class which reference identifier
of database. But what does "@Table" sentence mean?

Does it mean the table named WEB_BOOKSTORE_BOOKS in database?

According to bookstore2 example, the tutorial seems added books data
into database automatically. But it didn't show how to create books
data. If I need to create database, how to do it?
[Message sent by forum member 'r5raxu00' ]

http://forums.java.net/jive/thread.jspa?messageID=373466