使用TK框架中selectByPrimaryKey(Object key),需要注意要在entity里注明哪个字段是主键,否则会不知道哪个是PrimaryKey会随机一个字段就报错。

 使用TK框架中selectByPrimaryKey

 

 如下:

引入

import javax.persistence.Id;
/**
* 主键ID
*/
@Id
protected String id;

 

使用TK框架中selectByPrimaryKey

 

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2022-01-20
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2021-12-31
  • 2021-04-17
  • 2021-12-05
相关资源
相似解决方案