2014年1月2日星期四

Master to the next

The value of the primary key id value of a field in table A table B =
How to get field values ​​in Table A, Table B of the other field values ​​?
------ Solution ---------------------------------------- ----
cascade query , write sql on the line
select * from A, B where A. Field = B. Field
------ Solution ---------------- ---------------------------- object
A table of references to a B in Riga , cascading query a table of an object B corresponds to the time table will automatically check out, so that did not feel good , have to go to each query A query about B, sometimes as long as the check does not require B table A recommended sql ABid = B.id
------ For reference only -------------------------------------- -
ssh developed , do not say table A. table B. field field = solved ,
------ For reference only -------------- -------------------------
or how to get ah.
------ For reference only -------------------------------------- -


ssh idea for me to talk about . .
------ For reference only -------------------------------------- -


. . . . hql hibernate is not it?
------ For reference only -------------------------------------- -

  
ssh idea for me to talk about . .  

hql realize you want is not it.
------ For reference only ------------------------------------ ---
are similar. keyword hql multi-table query . Many online .
------ For reference only -------------------------------------- -
landlord does not know how to have a relationship with hibernate mapping
------ For reference only ------------------------? ---------------
hibernate mapping class you look , there will be class A mapping object B . Class B will be mapped in a collection
A Class

没有评论:

发表评论