问题标签 [gilead]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
hibernate - 通过查看数据库设置 Hibernate 以获取下一个密钥
我正在开发一个基于 Web 的应用程序来替换基于桌面的应用程序。我需要让它们都在同一个数据库上工作。对于基于 Web 的应用程序,我使用 GWT 和 Hiberate(与 Gilead),在 Tomcat 7.0 上运行。SQL 服务器是 MSSQL 2000。
我得到了例外:
com.microsoft.sqlserver.jdbc.SQLServerException:违反主键约束“PK_CallLog”。无法在对象“CallLog”中插入重复键。
要获得异常,我执行以下步骤:
- 使用旧应用程序添加通话记录
- 使用新应用程序添加通话记录(使用休眠)。
似乎hibernate正在使用自己的缓存,而不是查看数据库来确定下一个主键应该是什么。
有没有办法通过查看数据库来强制休眠获取下一个密钥?
这是通话记录的映射:
这是我用来添加新调用的方法:
通话记录的架构:
我想尽可能避免更改数据库,我不想破坏旧的应用程序。
hibernate - 如何从 GWT gilead 生成数据库模式?
我正在使用带有 gwt 的 gilead,并且我想从我的 Oracle Db 移动到 mySql Db
所以我尝试使用 hibernate.hbm2ddl.auto 属性,但什么也没发生。
请注意,我使用的是带注释的 pojo,而不是 hbm.xml。
eclipse - Eclipse + Hibernate + windows xp 赢7
我在 windows xp 上安装了一个 eclipse,一切正常。我的项目是带有gilead hibernate的GWT,数据库是oracle。
当我决定在家工作时,我只是将整个 Eclipse 复制到我的闪存中,并将我的工作区复制到我的 Windows 7。
之后我决定从 oracle Db 转移到 mysql Db,所以我更改了整个 hibernate.cfg.xml 文件为 mysql 做好准备,我删除了 ojdbc 库并添加了 mysql 连接器。
毕竟,当我尝试运行项目时,会显示以下错误:
无法连接到数据库
就像 eclipse 正在从旧的 hibernate.cfg.xml 文件中读取一样。
所以有人知道发生了什么吗???
这是我用于 oracle 连接的 hibernate.cfg.xml 文件:
这是我的 mySql 连接的 hibernate.cfg.xml 文件:
在我这样做之后,这个错误一直在播种:
无法连接到 oracle
但是当我在我的工作电脑上尝试它时,它工作正常。
hibernate - 休眠连接语句中的序列化异常
我正在使用 GWT、Hibernate 和 Gilead,但我没有摆脱序列化异常:
我正在使用 Hibernate Query Language 执行 JOIN,这会导致错误:
类的代码是:
有人知道解决方案吗?
java - 吉利德替代品将 GWT 和 Hibernate 粘合在一起
直到最近,Gilead 看起来像是将 GWT 和 Hibernate 粘合在一起的最佳解决方案。不幸的是,Gilead 项目似乎被放弃了,并且没有升级到新的 GWT 2.5,这让我们寻找替代品。
您是否知道任何新项目与 Gilead 为旧版本的 GWT 所做的事情基本相同?
java - 使用 Gilead 和 Hibernate Envers 时抛出 SecurityException
我正在尝试审核包含 HashMap 的对象。HashMap 属性是 @Transient as 并且我尝试将 @NotAudited 添加到它,但是当我尝试获取对象列表时,它会引发以下错误:
我已经用另一个没有 HashMap 的更简单的对象进行了尝试,并且效果很好。
有什么建议么?
使用 Hibernate 3.5.6 和 Gilead 1.3.2。
hibernate - 吉利德网站无法正常工作。任何指向开发人员指南或文档的链接?
在访问Gilead 网站时出现以下错误
警告:is_readable() [function.is-readable]:无法访问 /mnt/130/sda/ 中的 /mnt/102/sda/1/8/noon.gilead/gilead/modules/CGExtensions/CGExtensions.module.php 1/8/noon.gilead/gilead/modules/Ballots/Ballots.module.php 第 38 行错误:找不到 CGExtensions 模块。
致命错误:is_file() [function.is-file]:无法访问 /mnt/130 中的 /mnt/102/sda/1/8/noon.gilead/gilead/modules/MenuManager/lang/en_US/en_US.php /sda/1/8/noon.gilead/gilead/lib/classes/module_support/modlang.inc.php 在第 80 行
hibernate - 我可以使用什么来传输带有 Hibernate 的 GWT RPC 的分层对象?
我听说 Gilead 是一个很好的解决方案,但它还没有得到支持。
目前最好的解决方案是什么?
java - TransientObjectException error occurs after first save
I am getting a TransientObjectException whenever I make a consecutive save; I do not get this error on the first save or if I refresh the screen/page. This is pretty confusing to me since once the object has been saved sucessfully it should not be transient, since it has a representation in my DB.
My files below (User and UserPasswordInfo) have a one-to-many relationship, where a User can have more than one UserPasswordInfo (or UPI) and they are linked by my User's primary key: user_id.
I am pretty sure the problem exists from the following files, and not elsewhere, since the TOE error only showed up after adding this and, from my knowledge, the software has never had this problem in its lifetime (a few years).
Here are my hibernate files:
User.hbm.xml
#xA;UserPasswordInfo.hbm.xml
#xA;Here are their Java files:
User.java
#xA;UserPasswordInfo.java
#xA;Here is error message:
#xA;EDIT Here are some links and sections of code that may be related to this error:
This is the method call that's made when I save the objects (the above error is thrown before this method is called)
#xA; #xA; #xA; #xA;java - 如何更改 Gilead 的日志记录级别?
我将很多记录写入日志,如下所示:
2020 年 1 月 8 日下午 1:27:48 net.sf.gilead.core.PersistentBeanManager clonePojo 信息:第三方实例,未克隆
我想阻止他们。我假设如果我要将正在使用的日志记录级别更改为类似 WARN,他们会停止,但我似乎无法找到如何做到这一点。