Composite Key with Hibernate

后端 未结 4 758
死守一世寂寞
死守一世寂寞 2021-02-15 06:45

In order to generate the next SQL code:

create table users (
    user_name varchar(15) not null primary key, 
    user_pass varchar(15) not null);

create table         


        
4条回答
  •  后悔当初
    2021-02-15 07:34

    Sergio, look at this composite key mapping in hibernate tutorial. Might help you out.

提交回复
热议问题