如何将索引添加到属性的数据库列定义中。
伪代码就像是,
//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作为持久性提供程序