Mysql Specific in Appfuse

  • I get an "access denied" error when trying to create the MySQL Database.

The issue is likely because you're on Unix or you've changed the root password. See this page for assistance.
  • I get an "Illegal mix of collations" when I try to run tests against a MySQL database.

MySQL 4.1.7 requires you to add set the default character set to UTF-8 to get unicode support with AppFuse. To do this, add the following to your c:/Windows/my.ini or /etc/my.cnf file:
[mysqld]
default-character-set=utf8
  • I'm have methods that throw exceptions in a Transaction and nothing is being rolled back. What gives?

MySQL's default tables (MyISAM) do not support transactions by default. Add or replace the following line in your c:/Windows/my.ini or /etc/my.cnf file. You could also use PostgreSQL.
[mysqld]
default-storage-engine=innodb
NOTE: You may see default-storage-engine's synonym "default-table-type" in the configuration file. If so, set the value of that parameter to "innodb" instead.

BTW, MySQL Administrator is a nice tool for administering/monitoring MySQL.
  • I'm having trouble with MySQL on Suse 9.2.

Upgrading to the MySQL 3.1.5 JDBC Driver (or above) should fix this.
  • I get an "Could not synchronize database state with session" exception when I try to run test-dao.

If a class with a natural key does not declare a version or timestamp property, it's more dificult to get saveOrUpdate() and cascades to work correctly. You might use a custom Hibernate Interceptor as discussed in this chapter. (On the other hand, if you're happy to use explicit save() and explicit update() instead of saveOrUpdate() and cascades, Hibernate doesn't need to be able to distinguish between transient and detached instances; so you can safely ignore this advice.) Composite natural keys extend the same ideas. {Hibernate in Action: pag.:333}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值