由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to map one to many relation for a single table in hibe
相关主题
java Stringentity bean class for joint table
求教jbuilder的问题搞不懂为什么hibernate为什么这么流行?
继续问土问题问个问题
Help: web service questions改写(migrate) stored proc 问题
hibernate 的两个问题java development enviornment - software and hardware -Please
Re: when do I need to recompile问个问题
One simple question!问一个hibernate Key Generator的问题
Look at this relation diagram请教一个vignette vcm问题
相关话题的讨论汇总
话题: table话题: class2话题: class话题: class3话题: relation
进入Java版参与讨论
1 (共1页)
b******e
发帖数: 1861
1
table 2 is denormalized.
Table 1 (A) A is primary key
Table 2 (A, B, C, V), A, B, C is primary key. A is foreign key to Table
1(A), Table 1 to Table 2 is one to many relation
The classes are like below.
Class 1
{
A;
Set
}
Class2
{
Class1 c1;
B;
Set sets;
}
Class3
{
Class2 c2;
C;
V;
}
How can I config the mapping for class1 and class2 and class3 and make
hibernate not to do a separate insert/update for class2 when persistence
class 1 but to insert/update class 2 and class3 together in one sql?
1 (共1页)
进入Java版参与讨论
相关主题
请教一个vignette vcm问题hibernate 的两个问题
hibernate能不能orm没有主键的表格Re: when do I need to recompile
云计算如何应用到传统的web server应用One simple question!
java developer学哪个好:oracle, sql server.Look at this relation diagram
java Stringentity bean class for joint table
求教jbuilder的问题搞不懂为什么hibernate为什么这么流行?
继续问土问题问个问题
Help: web service questions改写(migrate) stored proc 问题
相关话题的讨论汇总
话题: table话题: class2话题: class话题: class3话题: relation