java 成员 注解_JAVA如何获得被注解的成员变量?

public class User {

@Index

private String scenicId;

private String pinyin;

private String title;

private String cityName; // 城市名字

private String cityCode;

private String stateCode;

private String stateName;

private String continentCode;

private String continentName;

private String countryCode;

private String countryName;

private double latitude;

private double longitude;

private String geohash;// 景点的GEOHASH编码

private String location;// 位置

private String image; // 这个景点所对应的一张照片。相当于封面

private double  score; // 此score是此地点的平均分

private List<String> themes; // 此地点最受欢迎的几个主题

private int commentCount = 0;// 评论数

private int collectCount = 0; // 收藏数

private String visitorUpdateInfo; // 用户贡献的信息,一次只能有一个

private int scoreCount = 0; // 打分的人数

private long createTime; // 创建时间

private String type;

private String introduction; // 描述(几个字描述)

private String descriptions; // 概述

private int titleSize;// 记录了标题的长度,可以用来做搜索。按照标题长度来匹配

public String getScenicId() {

return scenicId;

}

public void setScenicId(String scenicId) {

this.scenicId = scenicId;

}

public String getPinyin() {

return pinyin;

}

public void setPinyin(String pinyin) {

this.pinyin = pinyin;

}

public String getTitle() {

return title;

}

public void setTitle(String title) {

this.title = title;

}

public String getCityName() {

return cityName;

}

public void setCityName(String cityName) {

this.cityName = cityName;

}

public String getCityCode() {

return cityCode;

}

public void setCityCode(String cityCode) {

this.cityCode = cityCode;

}

public String getStateCode() {

return stateCode;

}

public void setStateCode(String stateCode) {

this.stateCode = stateCode;

}

public String getStateName() {

return stateName;

}

public void setStateName(String stateName) {

this.stateName = stateName;

}

public String getContinentCode() {

return continentCode;

}

public void setContinentCode(String continentCode) {

this.continentCode = continentCode;

}

public String getContinentName() {

return continentName;

}

public void setContinentName(String continentName) {

this.continentName = continentName;

}

public String getCountryCode() {

return countryCode;

}

public void setCountryCode(String countryCode) {

this.countryCode = countryCode;

}

public String getCountryName() {

return countryName;

}

public void setCountryName(String countryName) {

this.countryName = countryName;

}

public double getLatitude() {

return latitude;

}

public void setLatitude(double latitude) {

this.latitude = latitude;

}

public double getLongitude() {

return longitude;

}

public void setLongitude(double longitude) {

this.longitude = longitude;

}

public String getGeohash() {

return geohash;

}

public void setGeohash(String geohash) {

this.geohash = geohash;

}

public String getLocation() {

return location;

}

public void setLocation(String location) {

this.location = location;

}

public String getImage() {

return image;

}

public void setImage(String image) {

this.image = image;

}

public double getScore() {

return score;

}

public void setScore(double score) {

this.score = score;

}

public List<String> getThemes() {

return themes;

}

public void setThemes(List<String> themes) {

this.themes = themes;

}

public int getCommentCount() {

return commentCount;

}

public void setCommentCount(int commentCount) {

this.commentCount = commentCount;

}

public int getCollectCount() {

return collectCount;

}

public void setCollectCount(int collectCount) {

this.collectCount = collectCount;

}

public long getCreateTime() {

return createTime;

}

public void setCreateTime(long createTime) {

this.createTime = createTime;

}

public String getType() {

return type;

}

public void setType(String type) {

this.type = type;

}

public String getIntroduction() {

return introduction;

}

public void setIntroduction(String introduction) {

this.introduction = introduction;

}

public int getScoreCount() {

return scoreCount;

}

public void setScoreCount(int scoreCount) {

this.scoreCount = scoreCount;

}

public String getVisitorUpdateInfo() {

return visitorUpdateInfo;

}

public void setVisitorUpdateInfo(String visitorUpdateInfo) {

this.visitorUpdateInfo = visitorUpdateInfo;

}

public int getTitleSize() {

return titleSize;

}

public void setTitleSize(int titleSize) {

this.titleSize = titleSize;

}

public String getDescriptions() {

return descriptions;

}

public void setDescriptions(String descriptions) {

this.descriptions = descriptions;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值