@Entity with JSF, persist “hello world” with JPA
问题 Oracle describes very well how to make an @Entity. However, it's not strictly clear to me how to actually add/drop tables. I also like the rose india explanation, but just want to clarify the general idea. For a JSF JEE6 app with CDI, I can basically just create an @Entity class, instantiate some instances in the @Named bean, and write (CRUD operations) to the MySQL database with an EntityManager from the bean? I can just use default JPA which comes with Glassfish? Just want to clarify the