lishunli / nutz

Automatically exported from code.google.com/p/nutz
0 stars 0 forks source link

Link的构造函数不方便自己实现的JPAEntityMaker #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
想把以前Hibernate 
的Entity类换成直接支持Nutz,但又不想修改以前的代码,只有�
��己实现
一个JPAEntityMaker,但Link的构造依赖于One/Many/ManyMany。所以不方
便实现。

发生问题的调用代码:

异常堆栈:

相关日志:

Original issue reported on code.google.com by jiongs...@gmail.com on 11 Mar 2010 at 9:46

GoogleCodeExporter commented 9 years ago
Link 的三个静态构造方法的参数改一改就好了

Original comment by zozoh...@gmail.com on 11 Mar 2010 at 9:48

GoogleCodeExporter commented 9 years ago
那到底改还是不改呢?

Original comment by wendal1985@gmail.com on 13 Mar 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Bird.Waty 在看这个问题,看看他打算怎么改吧

Original comment by zozoh...@gmail.com on 13 Mar 2010 at 8:56

GoogleCodeExporter commented 9 years ago
fixed in r943
add three static function 
Link.getLinkForOne()
Link.getLinkForMany()
Link.getLinkForManyMany()

and 
@Deprecated
the old three constructed functions

Original comment by Bird.Wy...@gmail.com on 15 Mar 2010 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 15 Mar 2010 at 5:06

GoogleCodeExporter commented 9 years ago

Original comment by jiongs...@gmail.com on 16 Mar 2010 at 2:13

GoogleCodeExporter commented 9 years ago
change the class as comment 1 by zozoh in r947.

Original comment by Bird.Wy...@gmail.com on 17 Mar 2010 at 3:10

GoogleCodeExporter commented 9 years ago
修改后的代码还是要依赖于@Name或@Id,建议改编后的代码不要
依赖于Nutz Annotation

Original comment by jiongs...@gmail.com on 17 Mar 2010 at 7:11

GoogleCodeExporter commented 9 years ago
即:targetField,referField也最好通过参数传进来

Original comment by jiongs...@gmail.com on 17 Mar 2010 at 7:14

GoogleCodeExporter commented 9 years ago
has been fixed in r948
改变了构造函数增加了LinkType、referField和targetField.

Original comment by Bird.Wy...@gmail.com on 17 Mar 2010 at 9:34

GoogleCodeExporter commented 9 years ago
呃,你修改了哦,我重新格式化了一下,主要整理添加了一��
� JDOC,调整了一下参数,让其更有意义
见 r949

Original comment by zozoh...@gmail.com on 17 Mar 2010 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by jiongs...@gmail.com on 17 Mar 2010 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 13 May 2010 at 11:03