[jboss-user] [JBoss Eclipse IDE (users)] - Run SchemaExport does nothing
mcacker
do-not-reply at jboss.com
Thu Sep 14 13:27:32 EDT 2006
hi, i have a very simple scenario to try an generate a schema from a pojo. i have a Java Project with hibernate builder enabled. the project has a number of classes, but only one has a annotated java class (see below). i have a console configuration for HSQL (see below). when i try to generate a schema with the "Run SchemaExport" nothing is generated, either as a DDL or in the database. am i missing a step? the doc talks about using an Ant script, but i am assuming that this is not necessary for "Run SchemaExport"
if i run SchemaExport without the database running i do get a socket creation error, so it is doing something, just not generating the DDL or table.
any help would be much appreciated. thanks, Mitchell
package domain.persistent;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="schemaname.License")
public class License
{
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost/schemaname
sa
org.hibernate.dialect.HSQLDialect
</session-factory>
</hibernate-configuration>
OS - XP
Eclipse version Version: 3.2.0
Build id: M20060628-1325
Hibernate tools: 3.2.0.beta7
JDK: 1.5.0_07
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971640#3971640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971640
More information about the jboss-user
mailing list