在mysql中的关联表(即vm_user )中,user_id既是主键,也是外键,它引用与User实体关联的user表的id。lastModifiedDate;
private A a;
@JoinColumn(unique = true)在mysql中的关联表(即my_entity )中,主键是id of a和id of b的组合。
我在MySQL中有下表: tweetid BIGINT(18) UNSIGNED NOT NULL, +---------+------------+----------+--------------+-------------+----------+--------+------+------------+---------+---------------+
2 rows in set (