[jboss-user] [JBoss Seam] - generate-entities in Seam 2.0 doesent work ...

pablodiablo do-not-reply at jboss.com
Mon Jul 9 07:09:31 EDT 2007


Hi, I'm trying to generate entities based on existing tables and when I execute command "seam generate-entities" it dosent generate any files. 


c:\java\jboss-seam-2.0.0.BETA1>seam generate-entities
Buildfile: c:\java\jboss-seam-2.0.0.BETA1\seam-gen\build.xml

init-properties:

validate-workspace:

validate-project:

generate-entities:
     [echo] Reverse engineering database using JDBC driver C:\jboss\jboss-4.2.0.
GA\server\default\lib\mysql-connector-java-5.0.6-bin.jar
     [echo] project=C:/workspace/seammysql2
     [echo] model=com.mydomain.seamtest
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engi
neering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] 2007-07-09 13:07:34 org.hibernate.cfg.Environment 
[hibernate] INFO: Hibernate 3.2.0.cr5
[hibernate] 2007-07-09 13:07:34 org.hibernate.cfg.Environment 
[hibernate] INFO: hibernate.properties not found
[hibernate] 2007-07-09 13:07:34 org.hibernate.cfg.Environment buildBytecodeProvi
der
[hibernate] INFO: Bytecode provider name : cglib
[hibernate] 2007-07-09 13:07:34 org.hibernate.cfg.Environment 
[hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernate] 2007-07-09 13:07:34 org.hibernate.cfg.reveng.OverrideRepository addF
ile
[hibernate] INFO: Override file: C:\workspace\seammysql2\resources\seam-gen.reve
ng.xml
[hibernate] 2007-07-09 13:07:35 org.hibernate.connection.DriverManagerConnection
Provider configure
[hibernate] INFO: Using Hibernate built-in connection pool (not for production u
se!)
[hibernate] 2007-07-09 13:07:35 org.hibernate.connection.DriverManagerConnection
Provider configure
[hibernate] INFO: Hibernate connection pool size: 20
[hibernate] 2007-07-09 13:07:35 org.hibernate.connection.DriverManagerConnection
Provider configure
[hibernate] INFO: autocommit mode: false
[hibernate] 2007-07-09 13:07:35 org.hibernate.connection.DriverManagerConnection
Provider configure
[hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://local
host/test
[hibernate] 2007-07-09 13:07:35 org.hibernate.connection.DriverManagerConnection
Provider configure
[hibernate] INFO: connection properties: {user=root, password=****}
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: RDBMS: MySQL, version: 5.0.41-community-nt
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-ja
va-5.0.6 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 634
1 $ )
[hibernate] 2007-07-09 13:07:36 org.hibernate.dialect.Dialect 
[hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
[hibernate] 2007-07-09 13:07:36 org.hibernate.transaction.TransactionFactoryFact
ory buildTransactionFactory
[hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernate] 2007-07-09 13:07:36 org.hibernate.transaction.TransactionManagerLook
upFactory getTransactionManagerLookup
[hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, us
e of read-write or transactional second-level cache is not recommended)
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Automatic flush during beforeCompletion(): disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Automatic session close at end of transaction: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: JDBC batch size: 15
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: JDBC batch updates for versioned data: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Scrollable result sets: enabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: JDBC3 getGeneratedKeys(): enabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Connection release mode: auto
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Default catalog: dbcatalog
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Maximum outer join fetch depth: 2
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Default batch fetch size: 1
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Generate SQL with comments: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Order SQL updates by primary key: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory createQueryTra
nslatorFactory
[hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFact
ory
[hibernate] 2007-07-09 13:07:36 org.hibernate.hql.ast.ASTQueryTranslatorFactory

[hibernate] INFO: Using ASTQueryTranslatorFactory
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Query language substitutions: {}
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: JPA-QL strict compliance: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Second-level cache: enabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Query cache: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory createCachePro
vider
[hibernate] INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Optimize cache for minimal puts: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Structured second-level cache entries: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Statistics: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernate] 2007-07-09 13:07:36 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] INFO: Default entity-mode: pojo
[hibernate] 2007-07-09 13:07:36 org.hibernate.connection.DriverManagerConnection
Provider close
[hibernate] INFO: cleaning up connection pool: jdbc:mysql://localhost/test
[hibernate] 2007-07-09 13:07:36 org.hibernate.tool.Version 
[hibernate] INFO: Hibernate Tools 3.2.0.b9
2007-07-09 13:07:36 org.hibernate.connection.DriverManagerConnectionProvider clo
se
INFO: cleaning up connection pool: jdbc:mysql://localhost/test
[hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] 3. task: generic exportertemplate: view/view.xhtml.ftl
[hibernate] 4. task: generic exportertemplate: view/view.page.xml.ftl
[hibernate] 5. task: generic exportertemplate: view/edit.xhtml.ftl
[hibernate] 6. task: generic exportertemplate: view/edit.page.xml.ftl
[hibernate] 7. task: generic exportertemplate: src/EntityList.java.ftl
[hibernate] 8. task: generic exportertemplate: view/list.page.xml.ftl
[hibernate] 9. task: generic exportertemplate: src/EntityHome.java.ftl
[hibernate] 10. task: generic exportertemplate: view/layout/menu.xhtml.ftl
[javaformatter] Java formatting of 1 files completed. Skipped 0 file(s).
     [echo] Type 'seam restart' and go to http://localhost:8080/seammysql2

BUILD SUCCESSFUL
Total time: 6 seconds


I was using the same configuration with seam 1.2 and everything was ok. 
Do you have any ideas why it doesnt generate anything.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061911#4061911

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061911



More information about the jboss-user mailing list