`
itnumone
  • 浏览: 6138 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
文章列表
多对一:多个对象对应一个对象,在数据库中表现为多个表与另一个表为外键关联 以用户和公司为例,一个公司可以有好多用户,但一个用户不能同时在多个公司,这样的关联关系是单向多对一 步骤: 1.创建用户表 公司表sql语句,用户表中设置一个外键关联公司表    2.创建User Company实体类 并写映射文件       1) 在User中加入Company属性,并写get set方法     2)在User.hbm.xml中加入多对一映射,name为User中引入的company   column为User在数据库表中的companyid  
将ojdbc14.jar加到grails项目中的lib下,将conf包下的DataSource.groovy文件改为dataSource { pooled = true driverClassName = "oracle.jdbc.driver.OracleDriver" username = "scott" password = "xx" } hibernate { cache.use_second_level_cache = true cache.use_query_c ...
在build.xml构建ant时报如下错误: Buildfile: D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml   BUILD FAILED D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml:13: Cannot find ../../../../shared/bin/wasce-common.xml imported from D:\Pr ...

无法启动res

res(rule execution server) 首先在console控制台上查看是否存在res(http://localhost:8080/console 用户名:system 密码:manager)选applications中的web app wars,在url中找是否有/res    如果没有,则:     1.重新启动startserver(从命令行启动可查错   cmd- d:\-cd D:\Program Files\IBM\WebSphereILOGJRules711\shared\bin startserver  回车 )     2.可在 D:\Program ...
  jrules操作: 一、创建一个bom依赖于xom    步骤:   1.在rule explorer 右击新建一个rule project  2.选择standard rule project 点next 3.给此规则项目起一个名字 点next 4.选择要关联的xom 点next 5.一直next finish
Global site tag (gtag.js) - Google Analytics