`
peacherdiy
  • 浏览: 58375 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

seam 反向工程_没有实体生成

    博客分类:
  • seam
阅读更多

在执行完 seam setup, seam create-project, seam generate, 在工程目录里却找不到,相应的实体类,控制台输入如下:

E:\MTong_1\eclipse\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA>seam generate
SEAM_HOME: E:\MTong_1\eclipse\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA
Using seam-gen sources from: E:\MTong_1\eclipse\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA\seam-gen
Buildfile: E:\MTong_1\eclipse\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA\seam-gen\build.xml

init:

init-properties:
     [echo] e:/MTong_1/jboss-4.2.3.GA

validate-workspace:

validate-project:

init-generate:

generate-model:
     [echo] Reverse engineering database using JDBC driver E:\MTong_1\workSpace1\lifecyle\lib\h2.jar
     [echo] project=e:/MTong/workSpace1/open18
     [echo] model=org.open18.model
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] 2009-9-12 10:03:31 org.hibernate.cfg.Environment <clinit>
[hibernate] 信息: Hibernate 3.2.4.sp1
[hibernate] 2009-9-12 10:03:31 org.hibernate.cfg.Environment <clinit>
[hibernate] 信息: hibernate.properties not found
[hibernate] 2009-9-12 10:03:31 org.hibernate.cfg.Environment buildBytecodeProvider
[hibernate] 信息: Bytecode provider name : cglib
[hibernate] 2009-9-12 10:03:31 org.hibernate.cfg.Environment <clinit>
[hibernate] 信息: using JDK 1.4 java.sql.Timestamp handling
[hibernate] 2009-9-12 10:03:31 org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernate] 信息: Override file: e:\MTong\workSpace1\open18\resources\seam-gen.reveng.xml
[hibernate] 2009-9-12 10:03:31 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate] 信息: Using Hibernate built-in connection pool (not for production use!)
[hibernate] 2009-9-12 10:03:31 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate] 信息: Hibernate connection pool size: 20
[hibernate] 2009-9-12 10:03:31 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate] 信息: autocommit mode: false
[hibernate] 2009-9-12 10:03:31 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate] 信息: using driver: org.h2.Driver at URL: jdbc:h2:file:/home/twoputt/databases/open18-db/h2
[hibernate] 2009-9-12 10:03:31 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate] 信息: connection properties: {user=open18, password=****}
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: RDBMS: H2, version: 1.1.117 (2009-08-09)
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: JDBC driver: H2 JDBC Driver, version: 1.1.117 (2009-08-09)
[hibernate] 2009-9-12 10:03:32 org.hibernate.dialect.Dialect <init>
[hibernate] 信息: Using dialect: org.hibernate.dialect.H2Dialect
[hibernate] 2009-9-12 10:03:32 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernate] 信息: Using default transaction strategy (direct JDBC transactions)
[hibernate] 2009-9-12 10:03:32 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
[hibernate] 信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional secon
level cache is not recommended)
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Automatic flush during beforeCompletion(): disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Automatic session close at end of transaction: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: JDBC batch size: 15
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: JDBC batch updates for versioned data: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Scrollable result sets: enabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: JDBC3 getGeneratedKeys(): enabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Connection release mode: auto
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Default schema: PUBLIC
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Default catalog: H2
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Default batch fetch size: 1
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Generate SQL with comments: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Order SQL updates by primary key: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Order SQL inserts for batching: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernate] 信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernate] 2009-9-12 10:03:32 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernate] 信息: Using ASTQueryTranslatorFactory
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Query language substitutions: {}
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: JPA-QL strict compliance: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Second-level cache: enabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Query cache: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernate] 信息: Cache provider: org.hibernate.cache.HashtableCacheProvider
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Optimize cache for minimal puts: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Structured second-level cache entries: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Statistics: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Deleted entity synthetic identifier rollback: disabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Default entity-mode: pojo
[hibernate] 2009-9-12 10:03:32 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] 信息: Named query checking : enabled
[hibernate] 2009-9-12 10:03:32 org.hibernate.connection.DriverManagerConnectionProvider close
[hibernate] 信息: cleaning up connection pool: jdbc:h2:file:/home/twoputt/databases/open18-db/h2
[hibernate] 2009-9-12 10:03:32 org.hibernate.tool.Version <clinit>
[hibernate] 信息: Hibernate Tools 3.2.2.GA
[javaformatter] Java formatting of 0 files completed. Skipped 0 file(s).

generate-ui:
     [echo] Building project 'open18' to generate views and controllers

init:

groovy.compilemodel:

compilemodel:

groovy.compileactions:

groovy.copyactions:

compileactions:
    [javac] Compiling 1 source file to e:\MTong\workSpace1\open18\exploded-archives\open18.war\WEB-INF\dev

copyclasses:

compile:

war:
     [copy] Copying 1 file to e:\MTong\workSpace1\open18\exploded-archives\open18.war\WEB-INF\classes
     [copy] Copying 1 file to e:\MTong\workSpace1\open18\exploded-archives\open18.war\WEB-INF\classes\META-INF
     [copy] Copying 1 file to e:\MTong\workSpace1\open18\exploded-archives\open18.war\WEB-INF\classes
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] 2009-9-12 10:03:34 org.hibernate.cfg.annotations.Version <clinit>
[hibernate] 信息: Hibernate Annotations 3.3.0.GA
[hibernate] 2009-9-12 10:03:34 org.hibernate.ejb.Version <clinit>
[hibernate] 信息: Hibernate EntityManager 3.3.1.GA
[hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
[hibernate] 3. task: generic exportertemplate: view/view.page.xml.ftl
[hibernate] 4. task: generic exportertemplate: view/edit.xhtml.ftl
[hibernate] 5. task: generic exportertemplate: view/edit.page.xml.ftl
[hibernate] 6. task: generic exportertemplate: src/EntityList.java.ftl
[hibernate] 7. task: generic exportertemplate: view/list.page.xml.ftl
[hibernate] 8. task: generic exportertemplate: src/EntityHome.java.ftl
[hibernate] 9. 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/open18

generate:

BUILD SUCCESSFUL
Total time: 4 seconds

 由于之前的DLL是通过,H2默认的sa 用户生成的,怀疑在open18用户下没有用,于是用连接,h2控制台,

 SELECT * FROM COURSE ,发现找不到表,于是 再次切换到 sa用户登录, 执行同样的SQL语句,出现了表和相应的数据,  因此可以 可以推断 在 seam in action 提供的脚本,是不能用 open18 用户下生成表的

(CREATE USER IF NOT EXISTS OPEN18 SALT '82152f6992c1426d' HASH 'aab2ff3de419c88551a394d4e0b9d5b27c2281095f7a86aa34b37dbf16ba0d09' ADMIN;   )

  因此用 open18 用户登录 h2控制台,重新执行  dll 语句 和 测试数据 脚本。

  重新 执行  seam generate

 可惜 还是 没有生成?    下次继续。。。

 

0
0
分享到:
评论

相关推荐

    MATLAB_Seam_Carving_seamcarving_

    MATLAB_Seam_Carving_seamcarving_ 是一个与图像处理相关的项目,主要涉及到一种称为“seam carving”的技术,这是一种动态图像调整大小的方法,它可以在不改变图像整体视觉效果的情况下,增加或减少图像的宽度和...

    seam carving源程序.zip_image resizing_seam carving_seam carving 放大_

    "seam_carving_缩小"则是减小图像尺寸,通过删除那些对整体视觉影响较小的接缝像素来实现。同样,这个过程也尽量保持了图像内容的完整性。 "图像重定向"是指在改变图像尺寸时,不仅考虑像素的位置,还考虑像素的...

    Seam_2.0_Reference_zh_CN

    这个"Seam_2.0_Reference_zh_CN.pdf"文档很可能是Seam框架的中文参考指南,旨在帮助中国开发者更好地理解和应用Seam 2.0。 1. **Seam框架概述**:Seam的核心目标是简化企业级Java应用程序的开发,通过消除传统Java ...

    JBoss_Enterprise_Application_Platform-5.0.1-Seam_Reference_Guide-en-US.pdf

    JBoss_Enterprise_Application_Platform-5.0.1-Seam_Reference_Guide-en-US.pdf

    seam_me_getting_started.pdf

    标题:seam_me_getting_started.pdf 描述:seam与myeclipse的结合,初学者用 本文章将深入解析如何在MyEclipse环境中构建并部署一个简单的Seam应用(注册示例)到JBoss服务器上,这尤其适用于Seam初学者。我们将...

    seam_in_action

    根据提供的信息,我们可以推断出这是一本关于 Seam 框架的专业书籍,书名为《Seam in Action》,作者为 Dan Allen 和 Manning 出版社出版。本书主要讲解了 Seam 框架在 Java EE 3 环境中的应用与开发实践。接下来将...

    Seam_Reference_Guide.pdf

    - **自动生成功能**:Seam Dev Tools提供了一种简单的方法来根据数据库表自动生成相应的Seam实体类。这部分内容详细介绍了这一过程。 #### 7. Seam编辑器 - **视觉页面编辑器**:Seam Dev Tools包含一个专门用于...

    Seam_Dev_Tools_Reference_Guide.pdf

    - **Seam自动生成实体**:介绍如何使用Seam工具自动生成实体类。 #### 7. Seam编辑器特性 - **内容辅助**:解释了内容辅助功能,特别是在处理`components.xml`文件时的帮助。 - **Open On**:描述了如何使用“Open ...

    Seam_in_Action

    《Seam in Action》这本书是关于JBoss Seam框架的一部权威指南,由业界专家撰写,旨在帮助开发者深入了解和高效使用Seam。JBoss Seam是一个开源的企业级Java框架,它将JavaServer Faces (JSF)、Java Persistence API...

    Seam_Reference_Guide

    标题:Seam_Reference_Guide — A Framework for Java EE 5 描述:本书是关于Seam框架的参考指南,旨在为Java EE 5开发者提供深入理解与应用Seam的知识点。 ### Seam框架概览 Seam框架是为Java EE 5环境设计的一...

    Seam_2.0_Reference_zh_CNpdf

    根据提供的文件信息,我们可以推断出这是一份关于Seam 2.0的中文参考文档。Seam是一个基于Java EE平台的应用程序框架,它集成了JSF、EJB和其他技术来简化企业级应用的开发过程。下面将从几个方面详细阐述Seam 2.0中...

    seam_seamcarving_

    在"seam_carving"这个主题中,我们主要关注如何实现这一算法。在提供的压缩包文件中,`seam.m`很可能是一个MATLAB代码文件,它包含了Seam Carving的基本操作。MATLAB是一种广泛用于科学计算、图像处理和数据分析的...

    Seam-Carving-Matlab-master.rar_boardkkc_seam_seam carving_seamca

    这个名为"Seam-Carving-Matlab-master.rar_boardkkc_seam_seam carving_seamca"的压缩包文件包含了Matlab实现的Seam Carving算法,非常适合学习和理解这一技术。 Seam Carving的基本思想是找到图像中的一条或几条...

    seam-carving-matlab.rar_seam carving_seamcarving_图像处理 matlab

    在MATLAB中,`createMap.m`函数可能用于生成这个能量图,而`addSeam.m`则负责找到并添加或移除接缝。 3. **接缝操作**:一旦找到接缝,就需要对图像进行相应的操作。如果要缩小图像,可以沿着接缝删除像素;如果要...

    Spring 2.5中文手册+hibernate手册+Seam_2.0_R中文手册

    Seam 2.0_R中文手册则聚焦于Seam框架,这是一个整合了JSF(JavaServer Faces)、EJB 3、JPA(Java Persistence API)等技术的全栈式框架。Seam的目标是提供一个无缝的开发环境,让开发者能够轻松地构建富互联网应用...

    MATLAB_Seam_Carving.rar_image resizing_seam carving_seamcarving

    【MATLAB_Seam_Carving.rar】是一个关于图像调整大小技术的压缩包,重点在于"seam carving"方法,也称为“缝合雕刻”。Seam carving是一种动态图像缩放技术,它通过删除或添加图像中的能量最低的像素行或列来改变...

    CUDA_Seam_Carving.rar_cuda_seam_seam carving

    在这个名为"CUDA_Seam_Carving.rar_cuda_seam_seam carving"的压缩包中,我们看到的是一个使用CUDA实现的Seam Carving算法的实例。 Seam Carving是一种图像内容感知的缩放技术,由Ariel Shamir和Shai Avidan在2008...

Global site tag (gtag.js) - Google Analytics