0

如何将索引添加到属性的数据库列定义。

伪代码将类似于,

//Iterate through the mappings of all persistent classes.

if(entityClass instanceOf MyClass) {

  // get version property of the class
  // make sure an index is added in the schema for that column
}

可能吗 ?我将 JPA 与 Hibernate 一起用作持久提供程序

4

0 回答 0