Unable to get the primary key of the biz_aidperson table, please try to decorate it with the annotation @AutoId(primaryKey = "id")on the primary key ?
时间: 2024-04-21 11:22:58 浏览: 97
2013年高考英语 新教材配套词汇检测系列 模块三 Unit 3 Back to the past(教师版) 译林牛津版
To get the primary key of the `biz_aidperson` table, you can decorate the primary key field with the `@AutoId` annotation and specify the primary key column name using the `primaryKey` parameter. Here's an example:
```java
import com.xxx.annotation.AutoId;
public class BizAidPerson {
@AutoId(primaryKey = "id")
private Long id;
// Other fields and methods
}
```
By adding the `@AutoId(primaryKey = "id")` annotation to the `id` field, you are indicating that this field is the primary key for the `biz_aidperson` table, and the column name for the primary key is "id". Make sure to replace "id" with the actual column name of your primary key in the table.
阅读全文