|
|
|
еще тупой вопрос по хибернейту
|
|||
|---|---|---|---|
|
#18+
вот кусочек из док-файла, кусочек про двустороннюю связь по первичному ключу. A bidirectional one-to-one association on a primary key uses the special id generator. <class name="Person"> <id name="id" column="personId"> <generator class="native"/> </id> <one-to-one name="address"/> </class> <class name="Address"> <id name="id" column="personId"> <generator class="foreign"> <param name="property">person</param> </generator> </id> <one-to-one name="person" constrained="true"/> </class> create table Person ( personId bigint not null primary key ) create table Address ( personId bigint not null primary key ) как должы выглядеть ява файлы классов Person и Adress?.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2005, 15:45 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=770&tid=2150989]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
57ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 244ms |
| total: | 384ms |

| 0 / 0 |
