E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
SchemaExport
利用 Hibernate 的
SchemaExport
根据对象建立数据库
1.首先准备好hibernate的基本配置文件(../src/hibernate.cfg.xml) com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/itcast2 root org.hibernate.dialect.MySQLDialect true updat
Alex_zhuang
·
2011-08-27 17:00
数据库
Hibernate
jdbc
Class
generator
encoding
Schema Export
> <project name="bisoft" default="
schemaexport
" basedir=".
amos_tl
·
2011-08-25 18:00
schema
利用Hibernate的配置反向生成数据库
除了利用工具
SchemaExport
之外,还可以编写程序来自动初始化数据库,并且生成SQL DDL。 1.Hibernate配置 文件hibernate.cfg.xml &l
tzylwl
·
2011-08-19 17:00
Hibernate
Hibernate 双向ManyToMany 究极解决 新增-删除-修改-查询(4)
import java.util.List; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
taomujian
·
2011-08-18 11:00
Hibernate
hibernate 反正生成表
package a; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
zyengogo
·
2011-07-12 13:00
Hibernate
appfuse jdbc
loaded: C:\Documents and Settings\Administrator\cms2\core\target\test-classes\jdbc.properties ERROR -
SchemaExport
.execute
aaagu1234
·
2011-06-08 13:00
java
sql
mysql
jdbc
Appfuse
hibernate中annotation方式
SchemaExport
无法生成表的原因(ORA-02261)
引用 主要原因分析如下: 1.ID的注解中, @Column(name = "ID", nullable = false, unique = true, insertable = true, precision = 22, scale = 0)注解中绝对不能出现 unique = true 这个属性 记得:一定要移除unique = true 2.表名可能
abio1023
·
2011-05-28 15:00
数据结构
oracle
sql
Hibernate
mysql
HIbernate创建表
映射文件保存完好、HIbernate里面URL正确 java代码如下importorg.hibernate.cfg.Configuration;importorg.hibernate.tool.hbm2ddl.
SchemaExport
lkllz
·
2011-05-21 23:00
hibernate 类生成表 的实现源码
package com.test; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
yzz9i
·
2011-05-20 18:00
java
Hibernate
mysql
MyEclipse
jdbc
利用xdoclet开发hibernate3的ant通用代码
构建路径更改--> 属性->Java构建路径更改--> 运行HibernateDoclet,生成Hibernate类的映射文件"/> 运行
SchemaExport
zrbin153
·
2011-05-18 09:00
使用
SchemaExport
自动生成表结构
使用
SchemaExport
自动生成表结构 newSchemaExport(newAnnotationConfiguration().configure()).create(false,true);
老翟
·
2011-04-29 08:00
hibernate 映射文件生成数据库表脚本
import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.
SchemaExport
; public
lanxulin
·
2011-03-28 16:00
Hibernate
脚本
Hibernate基础
import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
; public class
huakaile
·
2011-03-24 08:00
Hibernate
xml
配置管理
利用hibernate反向自动创建数据库
package com.hzp.test; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
hzp
·
2011-03-05 23:00
Hibernate
xml
mysql
.net
jdbc
SchemaExport
工具实战(hibernate)
阅读更多
SchemaExport
工具实战通常我们使用生成数据库架构代码实例像这样:Configurationcfg=newConfiguration();cfg.Configure(“”);SchemaExportexport
rayn115
·
2011-03-05 14:00
Hibernate
Blog
.net
工作
SchemaExport
工具实战(hibernate)
SchemaExport
工具实战 通常我们使用生成数据库架构代码实例像这样:Configuration cfg=new Configuration(); cfg.Configure(“”);
SchemaExport
rayn115
·
2011-03-05 14:00
Hibernate
工作
.net
Blog
SchemaExport
工具实战(hibernate)
SchemaExport
工具实战 通常我们使用生成数据库架构代码实例像这样:Configuration cfg=new Configuration(); cfg.Configure(“”);
SchemaExport
rayn115
·
2011-03-05 14:00
Hibernate
工作
.net
Blog
从hbm的xml文件 自动生成数据库表
package util; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
;
yunhuisdu19811011
·
2011-01-24 13:00
xml
Hibernate
Hibernate导表
importorg.hibernate.cfg.AnnotationConfiguration; importorg.hibernate.cfg.Configuration; importorg.hibernate.tool.hbm2ddl.
SchemaExport
jerval
·
2011-01-14 20:00
Hibernate
Hibernate动态建表
基本思路: 查了一些资料同时结合到项目里用到了hibernate,就想到利用hibernate的
SchemaExport
来实现动态建表设计两个javabean:FormTable(表的基本属性)、ColumnAttribute
sjsky
·
2010-12-13 09:00
Hibernate
freemarker
企业应用
SchemaExport
动态建表
Hibernate动态建表
基本思路: 查了一些资料同时结合到项目里用到了hibernate,就想到利用hibernate的
SchemaExport
来实现动态建表设计两个javabean:FormTable(表的基本属性)、ColumnAttribute
sjsky
·
2010-12-13 09:00
freemarker
Hibernate
企业应用
SchemaExport
动态建表
SchemaExport
工具实战(hibernate)
SchemaExport
工具实战 通常我们使用生成数据库架构代码实例像这样:Configuration cfg=new Configuration(); cfg.Configure(“”);
zhaoshijie
·
2010-12-05 15:00
Hibernate
.net
工作
Blog
SchemaExport
对象的使用方法
SchemaExport
对象的使用方法 1.Drop(script, export)方法 Drop(script, export)方法根据持久类和映射文件执行删除数据库架构。
tengguanbing
·
2010-11-04 14:00
Hibernate
Hibernate 根据映射文件生成数据表
hibernate Annotation不用
SchemaExport
也可以生成表呀,只要在sessionFactory配置的过程中 <property name="hibernateProperties
taink
·
2010-10-13 11:00
数据结构
sql
Hibernate
bean
cache
Hibernate 根据映射文件生成数据表
hibernate Annotation不用
SchemaExport
也可以生成表呀,只要在sessionFactory配置的过程中 <property name="hibernateProperties
taink
·
2010-10-13 11:00
数据结构
sql
Hibernate
bean
cache
hibernate自动生成表结构
hibernate Annotation不用
SchemaExport
也可以生成表呀,只要在sessionFactory配置的过程中 <property name="hibernateProperties
wsqian
·
2010-09-21 11:00
数据结构
Hibernate
Hibernate技巧:利用配置文件编写程序生成数据库
除了利用工具
SchemaExport
之外,还可以编写程序来自动初始化数据库,并且生成SQL DDL。 (1)Hibernate配置文件 hibernate.cfg.xml <?
kidiaoer
·
2010-09-10 12:00
Hibernate
xml
mysql
.net
jdbc
Hibernate技巧:利用配置文件编写程序生成数据库
除了利用工具
SchemaExport
之外,还可以编写程序来自动初始化数据库,并且生成SQL DDL。 (1)Hibernate配置文件 hibernate.cfg.xml <?
kidiaoer
·
2010-09-10 12:00
xml
.net
Hibernate
mysql
jdbc
hibernate 之 hbm2ddl
通过xxx.hbm.xml文件生成SQL importorg.hibernate.cfg.Configuration; importorg.hibernate.tool.hbm2ddl.
SchemaExport
SeanCai
·
2010-09-06 17:00
Hibernate
hbm2ddl
IllegalAccessError
使用hibernate的
SchemaExport
自动创建数据表时,抛出Exception in thread "main" java.lang.IllegalAccessError:
syc8616
·
2010-08-27 14:00
thread
Hibernate
Access
Hibernate 备忘录
1.生成表两种方法,方法一,在Hibernate.cfg.xml配置文件中添加如下配置,则App运行过程中如数据库中表不存在,或根据相关条件生成新表,配置如下update 方法二,运用
SchemaExport
kylinsoong
·
2010-08-17 18:00
数据结构
xml
Hibernate
POJO to DDL 关键字 xdoclet ant hbm2ddl
schemaexport
Assumptions: Download hibernate and xdoclet, and create one java project in eclipse. 1, Create one POJO class with xdoclet package com.loader.model; import java.io.Serializable; /** * @
coobeegao
·
2010-07-21 13:00
java
eclipse
Hibernate
xml
ant
hibernate从POJO创建数据库表
Configuration config = new Configuration().configure();
SchemaExport
se = new
SchemaExport
(config);
wyyl00
·
2010-07-19 23:00
sql
xml
Hibernate
hibernate通过对象-关系映射文件*.hbm.xml创建数据库教程
import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
; public class
devil13th
·
2010-06-10 13:00
Hibernate
xml
Hibernate根据POJO导出表
package org.apple.hibernate;import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.
SchemaExport
豪情
·
2010-06-06 22:00
使用
SchemaExport
自动建表[回钦波解析]
之前都是用很古老的方法:SQL建立数据库相关的表,然后再Java写映射写配置文件..... 实际上使用Hibernate自带的工具hbm2ddl,建立根据你的对象建立数据库是很惬意的一件事;) 首先当然要建好POJO object, XML Mapping File(也 可以使用工具根据POJO class建立),配置文件(hibernate.cfg.x
huiqinbo
·
2010-05-09 19:00
java
DAO
Hibernate
xml
JUnit
使用
SchemaExport
自动建表[回钦波解析]
之前都是用很古老的方法:SQL建立数据库相关的表,然后再Java写映射写配置文件..... 实际上使用Hibernate自带的工具hbm2ddl,建立根据你的对象建立数据库是很惬意的一件事;) 首先当然要建好POJO object, XML Mapping File(也 可以使用工具根据POJO class建立),配置文件(hibernate.cfg.x
huiqinbo
·
2010-05-09 19:00
java
DAO
Hibernate
xml
JUnit
Hibernate启动过程分析
Configuration cfg=new Configuration(); cfg.addClass(User.class); cfg.configure();
SchemaExport
Sando352835800
·
2010-04-13 20:00
数据结构
Hibernate
xml
hibernate自动建表+mysql配制+sqlserver配制
自动建表:packagemis.business.util;importorg.hibernate.cfg.Configuration;importorg.hibernate.tool.hbm2ddl.
SchemaExport
quanquanfly
·
2010-03-10 00:00
Hibernate
mysql
数据库
jdbc
Class
sqlserver
利用Hibernate配置文件生成数据库
除了利用工具
SchemaExport
之外,还可以编写程序来自动初始化数据库,并且生成SQL DDL。 Hibernate配置 文件hibernate.cfg.xml <?
lilang0603
·
2010-02-01 16:00
sql
Hibernate
mysql
xml
jdbc
hibernate学习1之基础工具
//根据映射文件生成数据库表 import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
gundumw100
·
2010-01-27 14:00
java
Hibernate
xml
mysql
jdbc
hibernate学习1之基础工具
//根据映射文件生成数据库表 import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
gundumw100
·
2010-01-27 14:00
java
xml
Hibernate
mysql
jdbc
hibernate学习1之基础工具
//根据映射文件生成数据库表 import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
gundumw100
·
2010-01-27 14:00
java
Hibernate
mysql
xml
jdbc
hibernate创建表
import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
; public
lylin123
·
2009-12-06 13:00
xml
Hibernate
hbm2ddl工具类,将实体类生成数据库表
import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.
SchemaExport
; public class
Carterslam
·
2009-11-27 16:00
java
Hibernate
xml
hibernate工具类更具配置文件创建table,和创建currentsession..
packageorg.john.november.util;importorg.hibernate.cfg.Configuration;importorg.hibernate.tool.hbm2ddl.
SchemaExport
johnstrive
·
2009-11-09 14:00
由映射文件生成表
import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.
SchemaExport
;public class Test
ywj_316
·
2009-11-03 17:00
Hibernate
由映射文件生成表
import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.
SchemaExport
;public class Test
壹咪阳光
·
2009-11-03 17:00
Hibernate
由映射文件生成表
由映射文件生成表import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.
SchemaExport
;public
壹咪阳光
·
2009-11-03 17:00
用
SchemaExport
还是hbm2dll
Hibernate的东西其实很少。尽管他经常和Struts还有Spring一起使用,但是HIbernate与SS相比,应该还更是轻量级。不过人们也早就说了:Hibernate是使生产力大大提高了的,并没有说过其他什么过火的话啊。所以我一直没怎么看的起Hibernate(当然,人家更看不起我,因为他的粉丝多的不是我能数清的),不过为了“提高生产力”,Hibernate还是要选择的,毕竟SSH不分家嘛
somefuture
·
2009-10-31 23:00
spring
log4j
Hibernate
struts
ssh
上一页
1
2
3
4
5
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他