我试图找到实现计算属性的最佳方法,该属性将最新消息查询到聊天实体中。@Entity@Inheritance(strategy = InheritanceType.JOINEDMessageImageEntity extends MessageEntity
因此,我为get last message into the Chat实现了下面的JoinFormula属性,但是
我目前正在尝试使用SpringBoot连接到我的MySQL数据库"CoffeeShop“,并返回"menu”表中的所有记录。但问题是它只返回第一条记录的数量,重复4次(表中有4条记录),并向表中添加另一个"primary_id“键 下面是我的“菜单”表在MySQL中的显示方式: +------------+---------“文件的内容 spring.jpa.hibernate.ddl-auto=update
spring