Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 JPA 甚至 Hibernate 来设置鉴别器列的索引?
是的,使用 Hibernate Table 注释:
@Table(appliesTo="tableName", indexes = {@Index(name="index1", columnNames={"the_discriminator_column"})})