There is a Puzzled question. I written a class User like this: @Entity @Table(name = "user") public class User { private String name; private int id; private String message; public User() { } public User(String name, String message) { this.name = name; this.message = message; } @Id @GeneratedValue public int getId() { return id; } public void setId(int id) { this.id = id; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
and I written a Manager class like this: @PersistenceContext EntityManager em; ...... User user = new User(name, message); em.persist(user); ..... When the JBoss Server is running,everything is OK. the application create a new table named "user",and add data into the table.But after I close Server, I found everything is lost."user" table cannot de find,and data is yet!!! what happend? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932664#3932664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932664 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user