是否可以创建一个@Entity不包含主键/ Id 的表(来自JPA注释的Hibernate )?
我知道这不是一个好主意; 表应该有一个主键.
Reading that
how to do hibernate mapping for table or view without a primary key
I am wondering how to add a primary key to my view as it is basically just a stored query...?
PS: oracle 10g
thx