Hi,
I have a table with JPAContainer. I can add an entity to the container, and when I call
JPAContainer<Product> container = JPAContainerFactory.makeJndi(Product.class);
Product p = container.addEntity(new Product("test"));
container.getItem(p.getId()).isPersistent(); //= true; id = 1
So I can be sure my persistence works in general. I also see the entity in my vaadin UI table.
BUT: how can I use a JDBC client tool to inspect the database?
<persistence-unit name="myvaadin" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/myvaadin</jta-data-source>
Log shows:
[EL Info]
: 2013-10-07 23:35:30.876--ServerSession(3887359)--EclipseLink, version: Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5
[EL Info]
: 2013-10-07 23:35:32.518--ServerSession(3887359)--file:/C:/Users/Me/servers/apache-tomee-plus-1.5.2/wtpwebapps/myVaadinApp/WEB-INF/classes/_myvaadin login successful
I tried using H2 Web Console, and can login to that database file. But I only see the global “INFORMATION_SCHEMA” tables and the database users. I do NOT see any saved data from my JPAContainer.
Further, the file that the Logs point to does NOT exist. Though I can login to that.??
Why? Am I missing something? Do I have to call some container.persist(); aditionally so that I see the tables?