Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to generate tables from entities in Idea 13?

Jhonny Lora
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im giving idea a try and cant find the option JPA>Generate table from entities. I come from the eclipse world where I can generate entities or script with a couple of clicks and I find this is harder to do in intellij.

This is the persistence.xml I'm using:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<persistence-unit name="hmdb" transaction-type="RESOURCE_LOCAL">
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/name"/>
<property name="javax.persistence.jdbc.user" value="appsetup"/>
<property name="javax.persistence.jdbc.password" value="--------"/>
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="sql-script"/>
<property name="eclipselink.application-location" value="/home/-------/Projects/-------/target" />
<property name="eclipselink.create-ddl-jdbc-file-name" value="create.sql" />

The location Im using to generate the files is the idea build dir. Isn't there a way to generate using the eclipselink that you download from the eclipselink page as a zip?
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!