Closed GoogleCodeExporter closed 9 years ago
照错误来看,是由于大小写敏感的问题导致
DbTableFactory.getTable()方法在数据库中没有找
到表.
我现在的解决办法是将DbTableFactory.getTable()方法会使用重试,�
��略大小写进行查找.
Table t = _getTable(sqlTableName);
if(t == null ) {
t = _getTable(sqlTableName.toUpperCase());
}
if(t == null ) {
t = _getTable(sqlTableName.toLowerCase());
}
具体新的源码下载:
http://rapid-framework.googlecode.com/svn/trunk/rapid-
framework/generator/src/cn/org/rapid_framework/generator/provider/db/DbTableFact
ory.j
ava
Original comment by bad...@gmail.com
on 24 Mar 2010 at 11:27
确认没有问题的话,修改状态为Fixed
Original comment by bad...@gmail.com
on 25 Mar 2010 at 12:53
经过下载最新的DbTableFactory.getTable()方法,一对多的问题已经解
决.谢谢badqiu.
但生成的只生成了多对一的关联,没有生成一对多的关联.
而且多对多表的那个中间表没有必要生成一个联合主键类吧?
Original comment by ctfzh....@gmail.com
on 26 Mar 2010 at 2:18
Original issue reported on code.google.com by
ctfzh....@gmail.com
on 24 Mar 2010 at 9:09Attachments: