Tables are not generated in database even when i set attribute javax.persistence.schema-generation.database.action to create and connection string javax.persistence.jdbc.url to jdbc:derby:db;create=true persistence.xml: my testing method: As you can see, I also tried to override properties by supplying them to createEntityManagerFactory method. My EntityPerson class: Also tried excplicitly define Table name and Entity name with annotations: How to generate tables in db