摘要:
1、查询结果是表的部分字段,而不是全部ad是CouponAd 对象coupon 是ad的属性,也是一个实体类select ad.coupon from CouponAd ad where ad.deleted=false Order by createdDate desc2、like模糊搜索这里变量... 阅读全文
摘要:
1、大文本 @Column(columnDefinition="LONGTEXT") //使用大文本字段 private String content;2、不可更改,不为空@Column(updatable = false,nullable=false)3、时间戳字段,并设置默认值... 阅读全文