package com.example.entity; import javax.persistence.*; import java.util.List; @Table(name = "yonghu_info") public class YonghuInfo extends Account { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "zhanghao") private String zhanghao; @Column(name = "mima") private String mima; @Column(name = "xingming") private String xingming; @Column(name = "xingbie") private String xingbie; @Column(name = "shouji") private String shouji; @Column(name = "shenfenzheng") private String shenfenzheng; @Column(name = "zhaopian") private String zhaopian; @Column(name = "beizhu") private String beizhu; @Column(name = "level") private String level; @Column(name = "addtime") private String addtime; @Column(name = "status") private String status; @Transient private List<Long> zhaopianflst; //yoxuxtupTransiexnt public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public List<Long> getZhaopianflst() { return zhaopianflst; } public void setZhaopianflst(List<Long> zhaopianflst) { this.zhaopianflst = zhaopianflst; }
时间: 2023-05-31 15:08:07 浏览: 112
java-ee-api.rar_Javax.javaee-api_java ee api
这是一段 Java 代码,用于定义一个名为 YonghuInfo 的实体类,继承自 Account 类。其中使用了注解来定义数据库表名和字段,同时包含了一些基本属性,如账号、密码、姓名、性别、手机号、身份证号、照片、备注、等级、添加时间和状态等。此外还有一个列表属性 zhaopianflst,用于存储照片 id 列表,但有一个注解 Transient 表示该属性不会被持久化到数据库中。
阅读全文