Here are the examples of the java api @org.springframework.data.annotation.Id taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
902 Examples
19
View Source File : User.java
License : GNU General Public License v3.0
Project Creator : zhshuixian
License : GNU General Public License v3.0
Project Creator : zhshuixian
/**
* @author xiaoxian
*/
public clreplaced User {
@Id
private Integer id;
private String username;
private String nickname;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
@Override
public String toString() {
return "User{" + "id=" + id + ", username='" + username + '\'' + ", nickname='" + nickname + '\'' + '}';
}
}
19
View Source File : Customer.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
public clreplaced Customer {
@Id
private String id;
private String firstName;
private String lastName;
public Customer() {
}
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
@Override
public String toString() {
return String.format("Customer[id=%s, firstName='%s', lastName='%s']", this.id, this.firstName, this.lastName);
}
}
19
View Source File : ExampleEntity.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
/**
* Example enreplacedy used with {@link DataJdbcTest} tests.
*
* @author Andy Wilkinson
*/
public clreplaced ExampleEnreplacedy {
@Id
private Long id;
private String name;
private String reference;
public ExampleEnreplacedy(String name, String reference) {
this.name = name;
this.reference = reference;
}
public String getName() {
return this.name;
}
public String getReference() {
return this.reference;
}
}
19
View Source File : City.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
public clreplaced City {
@Id
private Long id;
private String name;
private String state;
private String country;
private String map;
protected City() {
}
public City(String name, String country) {
this.name = name;
this.country = country;
}
public String getName() {
return this.name;
}
public String getState() {
return this.state;
}
public String getCountry() {
return this.country;
}
public String getMap() {
return this.map;
}
@Override
public String toString() {
return getName() + "," + getState() + "," + getCountry();
}
}
19
View Source File : Tick.java
License : Apache License 2.0
Project Creator : ticktok-io
License : Apache License 2.0
Project Creator : ticktok-io
@NoArgsConstructor
@AllArgsConstructor
@Getter
@EqualsAndHashCode
@ToString
public clreplaced Tick {
public static final String PENDING = "PENDING";
public static final String IN_PROGRESS = "IN_PROGRESS";
public static final String PUBLISHED = "PUBLISHED";
@Id
private String id;
private String schedule;
@Indexed
private long time;
@Indexed
private String status;
public static Tick create(Schedule schedule) {
return new Tick(null, schedule.getSchedule(), schedule.getNextTick(), PENDING);
}
public static Tick create(String schedule, long time) {
return new Tick(null, schedule, time, PENDING);
}
public Tick nextTick() {
long nextTick = this.time + new ScheduleParser(schedule).interval();
return new Tick(null, schedule, nextTick, PENDING);
}
public Tick boundTo(long boundTime) {
return new Tick(id, schedule, boundedTimeTo(boundTime), status);
}
private long boundedTimeTo(long boundTime) {
return time < boundTime ? boundTime : time;
}
public int ttl() {
return new ScheduleParser(schedule).interval() - 1;
}
}
19
View Source File : Reservation.java
License : Apache License 2.0
Project Creator : spring-projects-experimental
License : Apache License 2.0
Project Creator : spring-projects-experimental
public clreplaced Reservation {
@Id
private Integer id;
private String name;
public String toString() {
return "Reservation(id=" + id + ",name=" + name + ")";
}
@Override
public int hashCode() {
return id * 37 + name.hashCode();
}
public boolean equals(Object o) {
if (o instanceof Reservation) {
Reservation that = (Reservation) o;
return this.id == that.id && this.name.equals(that.name);
}
return false;
}
public Reservation(Integer id, String name) {
this.id = id;
this.name = name;
}
public Reservation() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
19
View Source File : Foo.java
License : Apache License 2.0
Project Creator : spring-projects-experimental
License : Apache License 2.0
Project Creator : spring-projects-experimental
public clreplaced Foo {
@Id
private Long id;
private String value;
public Foo() {
}
public Foo(String value) {
this.value = value;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
return "Foo [value=" + this.value + "]";
}
}
19
View Source File : Person.java
License : Apache License 2.0
Project Creator : spring-projects
License : Apache License 2.0
Project Creator : spring-projects
/**
* @author Mark Paluch
*/
public clreplaced Person {
@Id
private String id;
private String firstname;
private String lastname;
private String preplacedword;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getFirstname() {
return this.firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return this.lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public String getPreplacedword() {
return this.preplacedword;
}
public void setPreplacedword(String preplacedword) {
this.preplacedword = preplacedword;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof Person))
return false;
Person person = (Person) o;
return Objects.equals(this.id, person.id) && Objects.equals(this.firstname, person.firstname) && Objects.equals(this.preplacedword, person.preplacedword);
}
@Override
public int hashCode() {
return Objects.hash(this.id, this.firstname, this.preplacedword);
}
}
19
View Source File : Customer.java
License : Apache License 2.0
Project Creator : spring-guides
License : Apache License 2.0
Project Creator : spring-guides
public clreplaced Customer {
@Id
private Long id;
private final String firstName;
private final String lastName;
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return this.firstName;
}
public String getLastName() {
return this.lastName;
}
@Override
public String toString() {
return String.format("Customer[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
}
}
19
View Source File : UserSkill.java
License : MIT License
Project Creator : sinnerschrader
License : MIT License
Project Creator : sinnerschrader
/**
* A skill owned by a person
* includes name, skill level and will level
*
* @author torree
*/
public clreplaced UserSkill {
@Id
private String name;
private int skillLevel;
private int willLevel;
private boolean hidden;
private boolean mentor;
public UserSkill(String name, int skillLevel, int willLevel, boolean hidden, boolean mentor) {
this.name = name;
this.skillLevel = skillLevel;
this.willLevel = willLevel;
this.hidden = hidden;
this.mentor = mentor;
}
public String getName() {
return this.name;
}
public int getSkillLevel() {
return skillLevel;
}
public void setSkillLevel(int skillLevel) {
this.skillLevel = skillLevel;
}
public int getWillLevel() {
return willLevel;
}
public void setWillLevel(int willLevel) {
this.willLevel = willLevel;
}
public void setHidden(boolean hidden) {
this.hidden = hidden;
}
public boolean isHidden() {
return this.hidden;
}
public void setMentor(boolean mentor) {
this.mentor = mentor;
}
public boolean isMentor() {
return this.mentor;
}
public JSONObject toJSON() {
var json = new JSONObject();
json.put("name", this.name);
json.put("skillLevel", this.skillLevel);
json.put("willLevel", this.willLevel);
json.put("mentor", this.mentor);
return json;
}
}
19
View Source File : GuestbookMessage.java
License : Apache License 2.0
Project Creator : saturnism
License : Apache License 2.0
Project Creator : saturnism
@Data
@Table(name = "guestbook_message")
@JsonIgnoreProperties(value = { "id" }, allowSetters = false)
public clreplaced GuestbookMessage {
@PrimaryKey
@Id
private String id;
private String name;
private String message;
@Column(name = "image_uri")
private String imageUri;
public GuestbookMessage() {
this.id = java.util.UUID.randomUUID().toString();
}
}
19
View Source File : Device.java
License : Apache License 2.0
Project Creator : sanshengshui
License : Apache License 2.0
Project Creator : sanshengshui
public clreplaced Device {
@Id
private Long id;
private String name;
private Double temperature;
private Double humidity;
private Long createdTime;
public Device() {
}
public Device(String name, Double temperature, Double humidity, Long createdTime) {
this.name = name;
this.temperature = temperature;
this.humidity = humidity;
this.createdTime = createdTime;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("Device [id=");
builder.append(id);
builder.append(", name=");
builder.append(name);
builder.append(", temperature=");
builder.append(temperature);
builder.append(", createdTime=");
builder.append(createdTime);
builder.append(", humidity=");
builder.append(humidity);
builder.append("]");
return builder.toString();
}
}
19
View Source File : User.java
License : MIT License
Project Creator : rstyro
License : MIT License
Project Creator : rstyro
public clreplaced User {
@Id
private Long id;
private String name;
private Integer age;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public User() {
super();
// TODO Auto-generated constructor stub
}
public User(Long id, String name, Integer age) {
super();
this.id = id;
this.name = name;
this.age = age;
}
@Override
public String toString() {
return "User [id=" + id + ", name=" + name + ", age=" + age + "]";
}
}
19
View Source File : Item.java
License : MIT License
Project Creator : rieckpil
License : MIT License
Project Creator : rieckpil
public clreplaced Item {
@Id
private String id;
private String name;
private double price;
private Item() {
}
public Item(String name, double price) {
this.name = name;
this.price = price;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
@Override
public String toString() {
return "Item{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", price=" + price + '}';
}
}
19
View Source File : EntityBase.java
License : Apache License 2.0
Project Creator : quebic-source
License : Apache License 2.0
Project Creator : quebic-source
public abstract clreplaced EnreplacedyBase {
public static final Integer STATUS_INACTIVE = 0;
public static final Integer STATUS_ACTIVE = 1;
public static final Integer STATUS_DELETED = -1;
@Id
private String id;
// default status
private Integer status = 1;
public EnreplacedyBase() {
}
public EnreplacedyBase(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof EnreplacedyBase)) {
return false;
}
EnreplacedyBase other = (EnreplacedyBase) object;
return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));
}
@Override
public String toString() {
return "EnreplacedyBase{" + "id=" + id + '}';
}
}
19
View Source File : Stock.java
License : MIT License
Project Creator : PacktPublishing
License : MIT License
Project Creator : PacktPublishing
@Id
public String getCode() {
return code;
}
19
View Source File : Customer.java
License : Apache License 2.0
Project Creator : otaviojava
License : Apache License 2.0
Project Creator : otaviojava
public clreplaced Customer {
@Id
public String id;
public String firstName;
public String lastName;
public Customer() {
}
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
@Override
public String toString() {
return String.format("Customer[id=%s, firstName='%s', lastName='%s']", id, firstName, lastName);
}
}
19
View Source File : Company.java
License : Apache License 2.0
Project Creator : nidi3
License : Apache License 2.0
Project Creator : nidi3
public clreplaced Company {
@Id
private String id;
private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
19
View Source File : Location.java
License : MIT License
Project Creator : microsoft
License : MIT License
Project Creator : microsoft
public clreplaced Location {
@Id
private String id;
private String name;
private int longitude;
private int lareplacedude;
public Location() {
}
public Location(String name, int longitude, int lareplacedude) {
this.name = name;
this.longitude = longitude;
this.lareplacedude = lareplacedude;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getLongitude() {
return longitude;
}
public void setLongitude(int longitude) {
this.longitude = longitude;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o == null || !(o instanceof Location)) {
return false;
}
final Location location = (Location) o;
return Objects.equals(this.getName(), location.getName()) && Objects.equals(this.longitude, location.longitude) && Objects.equals(this.lareplacedude, location.lareplacedude);
}
@Override
public int hashCode() {
return Objects.hash(name, longitude, lareplacedude);
}
}
19
View Source File : Card.java
License : Apache License 2.0
Project Creator : microservices-demo
License : Apache License 2.0
Project Creator : microservices-demo
public clreplaced Card {
@Id
private String id;
private String longNum;
private String expires;
private String ccv;
public Card() {
}
public Card(String id, String longNum, String expires, String ccv) {
this.id = id;
this.longNum = longNum;
this.expires = expires;
this.ccv = ccv;
}
public Card(String longNum, String expires, String ccv) {
this(null, longNum, expires, ccv);
}
@Override
public String toString() {
return "Card{" + "id=" + id + ", longNum='" + longNum + '\'' + ", expires='" + expires + '\'' + ", ccv='" + ccv + '\'' + '}';
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClreplaced() != o.getClreplaced())
return false;
Card card = (Card) o;
return getId().equals(card.getId());
}
@Override
public int hashCode() {
return getId().hashCode();
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getLongNum() {
return longNum;
}
public void setLongNum(String longNum) {
this.longNum = longNum;
}
public String getExpires() {
return expires;
}
public void setExpires(String expires) {
this.expires = expires;
}
public String getCcv() {
return ccv;
}
public void setCcv(String ccv) {
this.ccv = ccv;
}
}
19
View Source File : Address.java
License : Apache License 2.0
Project Creator : microservices-demo
License : Apache License 2.0
Project Creator : microservices-demo
public clreplaced Address {
@Id
private String id;
private String number;
private String street;
private String city;
private String postcode;
private String country;
public Address() {
}
public Address(String id, String number, String street, String city, String postcode, String country) {
this.id = id;
this.number = number;
this.street = street;
this.city = city;
this.postcode = postcode;
this.country = country;
}
public Address(String number, String street, String city, String postcode, String country) {
this(null, number, street, city, postcode, country);
}
@Override
public String toString() {
return "Address{" + "id=" + id + ", number='" + number + '\'' + ", street='" + street + '\'' + ", city='" + city + '\'' + ", country='" + country + '\'' + ", postcode='" + postcode + '\'' + '}';
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClreplaced() != o.getClreplaced())
return false;
Address address = (Address) o;
return getId().equals(address.getId());
}
@Override
public int hashCode() {
return getId().hashCode();
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getPostcode() {
return postcode;
}
public void setPostcode(String postcode) {
this.postcode = postcode;
}
}
19
View Source File : StringIdentifier.java
License : Apache License 2.0
Project Creator : melthaw
License : Apache License 2.0
Project Creator : melthaw
public abstract clreplaced StringIdentifier implements Serializable {
public static String trim(String value) {
if (value != null) {
return value.trim();
}
return value;
}
@Id
String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
19
View Source File : Account.java
License : MIT License
Project Creator : leftso
License : MIT License
Project Creator : leftso
public clreplaced Account {
@Id
private String id;
private String name;
private String preplacedword;
private String[] roles;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPreplacedword() {
return preplacedword;
}
public void setPreplacedword(String preplacedword) {
this.preplacedword = preplacedword;
}
public String[] getRoles() {
return roles;
}
public void setRoles(String[] roles) {
this.roles = roles;
}
}
19
View Source File : Account.java
License : Apache License 2.0
Project Creator : lanshiqin
License : Apache License 2.0
Project Creator : lanshiqin
/**
* 账户实体类
*/
public clreplaced Account {
@Id
private String // 主键
id;
// 用户名
private String userName;
// 密码
private String preplacedWord;
// 角色
private String[] roles;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPreplacedWord() {
return preplacedWord;
}
public void setPreplacedWord(String preplacedWord) {
this.preplacedWord = preplacedWord;
}
public String[] getRoles() {
return roles;
}
public void setRoles(String[] roles) {
this.roles = roles;
}
}
19
View Source File : Message.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Message {
@Id
private Integer id;
private String username;
private Long millis;
private String blabla;
public Message(String username, Long millis, String blabla) {
this.username = username;
this.millis = millis;
this.blabla = blabla;
}
public String getUsername() {
return username;
}
public Long getMillis() {
return millis;
}
public String getBlabla() {
return blabla;
}
public LocalDateTime getLocalDateTime() {
return Instant.ofEpochMilli(millis).atZone(ZoneId.of("Asia/Taipei")).toLocalDateTime();
}
}
19
View Source File : Account.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Account {
@Id
private Integer id;
private String name;
private String email;
private String preplacedword;
private Integer enabled;
private String role;
public Account() {
}
public Account(String name, String email, String preplacedword, Integer enabled, String role) {
this.name = name;
this.email = email;
this.preplacedword = preplacedword;
this.enabled = enabled;
this.role = role;
}
public Account(String name, String email, String preplacedword) {
this(name, email, preplacedword, 0, "ROLE_MEMBER");
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getPreplacedword() {
return preplacedword;
}
public void setName(String name) {
this.name = name;
}
public void setEmail(String email) {
this.email = email;
}
public void setPreplacedword(String preplacedword) {
this.preplacedword = preplacedword;
}
public Integer getEnabled() {
return enabled;
}
}
19
View Source File : Account.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Account {
@Id
private Integer id;
private String name;
private String email;
private String preplacedword;
private Integer enabled;
private String role;
public Account() {
}
public Account(String name, String email, String preplacedword, Integer enabled, String role) {
this.name = name;
this.email = email;
this.preplacedword = preplacedword;
this.enabled = enabled;
this.role = role;
}
public Account(String name, String email, String preplacedword) {
this(name, email, preplacedword, 0, "ROLE_MEMBER");
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getPreplacedword() {
return preplacedword;
}
public void setName(String name) {
this.name = name;
}
public void setEmail(String email) {
this.email = email;
}
public void setPreplacedword(String preplacedword) {
this.preplacedword = preplacedword;
}
}
19
View Source File : Message.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Message {
@Id
private Integer id;
private String username;
private Long millis;
private String blabla;
public Message(String username, Long millis, String blabla) {
this.username = username;
this.millis = millis;
this.blabla = blabla;
}
public Integer getId() {
return id;
}
public String getUsername() {
return username;
}
public Long getMillis() {
return millis;
}
public String getBlabla() {
return blabla;
}
public LocalDateTime getLocalDateTime() {
return Instant.ofEpochMilli(millis).atZone(ZoneId.of("Asia/Taipei")).toLocalDateTime();
}
}
19
View Source File : Message.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Message {
@Id
private Integer id;
private String username;
private Long millis;
private String blabla;
public Message() {
}
public Message(String username, Long millis, String blabla) {
this.username = username;
this.millis = millis;
this.blabla = blabla;
}
public Integer getId() {
return id;
}
public String getUsername() {
return username;
}
public Long getMillis() {
return millis;
}
public String getBlabla() {
return blabla;
}
}
19
View Source File : Message.java
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
License : GNU Lesser General Public License v3.0
Project Creator : JustinSDK
public clreplaced Message {
@Id
private Integer id;
private String username;
private Long millis;
private String blabla;
public Message(String username, Long millis, String blabla) {
this.username = username;
this.millis = millis;
this.blabla = blabla;
}
public Integer getId() {
return id;
}
public String getUsername() {
return username;
}
public Long getMillis() {
return millis;
}
public String getBlabla() {
return blabla;
}
}
19
View Source File : City.java
License : Apache License 2.0
Project Creator : JeffLi1993
License : Apache License 2.0
Project Creator : JeffLi1993
/**
* 城市实体类
*/
public clreplaced City {
/**
* 城市编号
*/
@Id
private Long id;
/**
* 省份编号
*/
private Long provinceId;
/**
* 城市名称
*/
private String cityName;
/**
* 描述
*/
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getProvinceId() {
return provinceId;
}
public void setProvinceId(Long provinceId) {
this.provinceId = provinceId;
}
public String getCityName() {
return cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
19
View Source File : City.java
License : Apache License 2.0
Project Creator : JeffLi1993
License : Apache License 2.0
Project Creator : JeffLi1993
/**
* 城市实体类
*/
public clreplaced City implements Serializable {
private static final long serialVersionUID = -2081742442561524068L;
/**
* 城市编号
*/
@Id
private Long id;
/**
* 省份编号
*/
private Long provinceId;
/**
* 城市名称
*/
private String cityName;
/**
* 描述
*/
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getProvinceId() {
return provinceId;
}
public void setProvinceId(Long provinceId) {
this.provinceId = provinceId;
}
public String getCityName() {
return cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "City{" + "id=" + id + ", provinceId=" + provinceId + ", cityName='" + cityName + '\'' + ", description='" + description + '\'' + '}';
}
}
19
View Source File : City.java
License : Apache License 2.0
Project Creator : JeffLi1993
License : Apache License 2.0
Project Creator : JeffLi1993
/**
* 城市实体类
*/
public clreplaced City implements Serializable {
private static final long serialVersionUID = -2081742442561524068L;
/**
* 城市编号
*/
@Id
private Long id;
/**
* 省份编号
*/
private Long provinceId;
/**
* 城市名称
*/
private String cityName;
/**
* 描述
*/
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getProvinceId() {
return provinceId;
}
public void setProvinceId(Long provinceId) {
this.provinceId = provinceId;
}
public String getCityName() {
return cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
19
View Source File : NoArgsEntity.java
License : Apache License 2.0
Project Creator : infobip
License : Apache License 2.0
Project Creator : infobip
@ToString
@Getter
@EqualsAndHashCode
public clreplaced NoArgsEnreplacedy {
@With
@Id
private final Long id;
private final String value;
NoArgsEnreplacedy(Long id) {
this.id = id;
this.value = null;
}
@PersistenceConstructor
public NoArgsEnreplacedy(Long id, String value) {
this.id = id;
this.value = value;
}
NoArgsEnreplacedy(String value) {
this.id = null;
this.value = value;
}
}
19
View Source File : NoArgsEntity.java
License : Apache License 2.0
Project Creator : infobip
License : Apache License 2.0
Project Creator : infobip
@Getter
@EqualsAndHashCode
public clreplaced NoArgsEnreplacedy {
@With
@Id
private final Long id;
private final String value;
NoArgsEnreplacedy() {
this.id = null;
this.value = null;
}
NoArgsEnreplacedy(Long id) {
this.id = id;
this.value = null;
}
public NoArgsEnreplacedy(Long id, String value) {
this.id = id;
this.value = value;
}
NoArgsEnreplacedy(String value) {
this.id = null;
this.value = value;
}
}
19
View Source File : PascalCaseFooBar.java
License : Apache License 2.0
Project Creator : infobip
License : Apache License 2.0
Project Creator : infobip
@DefaultSchema("dbo")
public clreplaced PascalCaseFooBar {
@Id
private final Long id;
private final String foo;
private final String bar;
public PascalCaseFooBar(Long id, String foo, String bar) {
this.id = id;
this.foo = foo;
this.bar = bar;
}
}
19
View Source File : EntityWithSchema.java
License : Apache License 2.0
Project Creator : infobip
License : Apache License 2.0
Project Creator : infobip
@Schema("foo")
public clreplaced EnreplacedyWithSchema {
@Id
private final Long id;
public EnreplacedyWithSchema(Long id) {
this.id = id;
}
}
19
View Source File : MessageInfo.java
License : MIT License
Project Creator : cwenao
License : MIT License
Project Creator : cwenao
/**
* @author cwenao
* @version $Id MessageInfo.java, v 0.1 2017-01-30 12:29 cwenao Exp $$
*/
public clreplaced MessageInfo {
@Id
private String id;
private String replacedle;
private String msgType;
private String msgInfo;
/**
* Getter method for property <tt>id</tt>.
*
* @return property value of id
*/
public String getId() {
return id;
}
/**
* Setter method for property <tt>id</tt>.
*
* @param id value to be replacedigned to property id
*/
public void setId(String id) {
this.id = id;
}
/**
* Getter method for property <tt>replacedle</tt>.
*
* @return property value of replacedle
*/
public String getreplacedle() {
return replacedle;
}
/**
* Setter method for property <tt>replacedle</tt>.
*
* @param replacedle value to be replacedigned to property replacedle
*/
public void setreplacedle(String replacedle) {
this.replacedle = replacedle;
}
/**
* Getter method for property <tt>msgType</tt>.
*
* @return property value of msgType
*/
public String getMsgType() {
return msgType;
}
/**
* Setter method for property <tt>msgType</tt>.
*
* @param msgType value to be replacedigned to property msgType
*/
public void setMsgType(String msgType) {
this.msgType = msgType;
}
/**
* Getter method for property <tt>msgInfo</tt>.
*
* @return property value of msgInfo
*/
public String getMsgInfo() {
return msgInfo;
}
/**
* Setter method for property <tt>msgInfo</tt>.
*
* @param msgInfo value to be replacedigned to property msgInfo
*/
public void setMsgInfo(String msgInfo) {
this.msgInfo = msgInfo;
}
@Override
public String toString() {
return "[ id =" + id + ", replacedle =" + replacedle + ", msgInfo=" + msgInfo + " ]";
}
}
19
View Source File : Estoque.java
License : GNU General Public License v3.0
Project Creator : boaglio
License : GNU General Public License v3.0
Project Creator : boaglio
public clreplaced Estoque implements Serializable {
private static final long serialVersionUID = 2622999509067811332L;
@Id
private String id;
private Long itemId;
private Long quantidade;
public Estoque(Long itemId, Long quantidade) {
this.itemId = itemId;
this.quantidade = quantidade;
}
public Estoque() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Long gereplacedemId() {
return itemId;
}
public void sereplacedemId(Long itemId) {
this.itemId = itemId;
}
public Long getQuantidade() {
return quantidade;
}
public void setQuantidade(Long quantidade) {
this.quantidade = quantidade;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClreplaced() != obj.getClreplaced())
return false;
Estoque other = (Estoque) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
return true;
}
@Override
public String toString() {
return "Estoque [itemId=" + itemId + ", quantidade=" + quantidade + "]";
}
}
19
View Source File : User.java
License : MIT License
Project Creator : Azure-Samples
License : MIT License
Project Creator : Azure-Samples
public clreplaced User {
@Id
public String id;
public String name;
public User(String name) {
this.name = name;
}
@Override
public String toString() {
return String.format("User[id=%s, name='%s']", id, name);
}
}
19
View Source File : Address.java
License : Apache License 2.0
Project Creator : arangodb
License : Apache License 2.0
Project Creator : arangodb
/**
* @author Mark Vollmary
*/
public clreplaced Address {
@Id
private String id;
private String zipCode;
public Address() {
super();
}
public Address(final String zipCode) {
super();
this.zipCode = zipCode;
}
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public String getZipCode() {
return zipCode;
}
public void setZipCode(final String zipCode) {
this.zipCode = zipCode;
}
public boolean equals(Object o) {
if (!(o instanceof Address))
return false;
Address address = (Address) o;
if (!address.getId().equals(this.getId()))
return false;
if (!address.getZipCode().equals(this.getZipCode()))
return false;
return true;
}
}
19
View Source File : Eagle.java
License : Apache License 2.0
Project Creator : arangodb
License : Apache License 2.0
Project Creator : arangodb
/**
* @author Michele Rastelli
*/
public clreplaced Eagle implements Animal {
@Id
private String id;
private String name;
private Double wingspan;
public Eagle() {
}
@Override
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getWingspan() {
return wingspan;
}
public void setWingspan(Double wingspan) {
this.wingspan = wingspan;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClreplaced() != o.getClreplaced())
return false;
Eagle eagle = (Eagle) o;
return Objects.equals(id, eagle.id) && Objects.equals(name, eagle.name) && Objects.equals(wingspan, eagle.wingspan);
}
@Override
public int hashCode() {
return Objects.hash(id, name, wingspan);
}
}
19
View Source File : Dog.java
License : Apache License 2.0
Project Creator : arangodb
License : Apache License 2.0
Project Creator : arangodb
/**
* @author Michele Rastelli
*/
public clreplaced Dog implements Animal {
@Id
private String id;
private String name;
private Integer teeths;
public Dog() {
}
@Override
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getTeeths() {
return teeths;
}
public void setTeeths(Integer teeths) {
this.teeths = teeths;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClreplaced() != o.getClreplaced())
return false;
Dog dog = (Dog) o;
return Objects.equals(id, dog.id) && Objects.equals(name, dog.name) && Objects.equals(teeths, dog.teeths);
}
@Override
public int hashCode() {
return Objects.hash(id, name, teeths);
}
}
19
View Source File : SysRuleInfo.java
License : Apache License 2.0
Project Creator : 514840279
License : Apache License 2.0
Project Creator : 514840279
/**
* @文件名 SysRuleInfo.java
* @包名 org.danyuan.application.crawler.config.po
* @描述 TODO(用一句话描述该文件做什么)
* @时间 2019年7月19日 下午1:20:54
* @author Administrator
* @版本 V1.0
*/
// @Doreplacedent("sys_rule_info")
public clreplaced SysRuleInfo {
@Id
private String uuid;
private String pageType;
private String pageName;
private GroupList groupList;
private GroupList dictList;
/**
* @方法名 getUuid
* @功能 返回变量 uuid 的值
* @return String
*/
public String getUuid() {
return uuid;
}
/**
* @方法名 setUuid
* @功能 设置变量 uuid 的值
*/
public void setUuid(String uuid) {
this.uuid = uuid;
}
/**
* @方法名 getPageType
* @功能 返回变量 pageType 的值
* @return String
*/
public String getPageType() {
return pageType;
}
/**
* @方法名 setPageType
* @功能 设置变量 pageType 的值
*/
public void setPageType(String pageType) {
this.pageType = pageType;
}
/**
* @方法名 getPageName
* @功能 返回变量 pageName 的值
* @return String
*/
public String getPageName() {
return pageName;
}
/**
* @方法名 setPageName
* @功能 设置变量 pageName 的值
*/
public void setPageName(String pageName) {
this.pageName = pageName;
}
/**
* @方法名 getGroupList
* @功能 返回变量 groupList 的值
* @return GroupList
*/
public GroupList getGroupList() {
return groupList;
}
/**
* @方法名 setGroupList
* @功能 设置变量 groupList 的值
*/
public void setGroupList(GroupList groupList) {
this.groupList = groupList;
}
/**
* @方法名 getDictList
* @功能 返回变量 dictList 的值
* @return GroupList
*/
public GroupList getDictList() {
return dictList;
}
/**
* @方法名 setDictList
* @功能 设置变量 dictList 的值
*/
public void setDictList(GroupList dictList) {
this.dictList = dictList;
}
}
18
View Source File : MemberProductCollection.java
License : MIT License
Project Creator : yzsunlei
License : MIT License
Project Creator : yzsunlei
/**
* 用户收藏的商品
* Created by macro on 2018/8/2.
*/
public clreplaced MemberProductCollection {
@Id
private String id;
@Indexed
private Long memberId;
private String memberNickname;
private String memberIcon;
@Indexed
private Long productId;
private String productName;
private String productPic;
private String productSubreplacedle;
private String productPrice;
private Date createTime;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public String getMemberNickname() {
return memberNickname;
}
public void setMemberNickname(String memberNickname) {
this.memberNickname = memberNickname;
}
public String getMemberIcon() {
return memberIcon;
}
public void setMemberIcon(String memberIcon) {
this.memberIcon = memberIcon;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductPic() {
return productPic;
}
public void setProductPic(String productPic) {
this.productPic = productPic;
}
public String getProductSubreplacedle() {
return productSubreplacedle;
}
public void setProductSubreplacedle(String productSubreplacedle) {
this.productSubreplacedle = productSubreplacedle;
}
public String getProductPrice() {
return productPrice;
}
public void setProductPrice(String productPrice) {
this.productPrice = productPrice;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
18
View Source File : User.java
License : Apache License 2.0
Project Creator : yx726843014
License : Apache License 2.0
Project Creator : yx726843014
@Doreplacedent(collection = "user")
public clreplaced User implements Serializable {
@Id
private String id;
private String username;
private String preplacedword;
public String getId() {
return id;
}
@Override
public String toString() {
return "User{" + "id='" + id + '\'' + ", username='" + username + '\'' + ", preplacedword='" + preplacedword + '\'' + '}';
}
public void setId(String id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPreplacedword() {
return preplacedword;
}
public void setPreplacedword(String preplacedword) {
this.preplacedword = preplacedword;
}
}
18
View Source File : Customer.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
clreplaced Customer {
@Id
private Long id;
private String firstName;
private LocalDate dateOfBirth;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return this.firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public LocalDate getDateOfBirth() {
return this.dateOfBirth;
}
public void setDateOfBirth(LocalDate dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
}
18
View Source File : Customer.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
@Doreplacedent(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1")
public clreplaced Customer {
@Id
private String id;
private String firstName;
private String lastName;
public Customer() {
}
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getFirstName() {
return this.firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return this.lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public String toString() {
return String.format("Customer[id=%s, firstName='%s', lastName='%s']", this.id, this.firstName, this.lastName);
}
}
18
View Source File : PersonHash.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
/**
* Example graph used with {@link DataRedisTest} tests.
*
* @author Jayaram Pradhan
*/
@RedisHash("persons")
public clreplaced PersonHash {
@Id
private String id;
private String description;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
}
18
View Source File : City.java
License : Apache License 2.0
Project Creator : yuanmabiji
License : Apache License 2.0
Project Creator : yuanmabiji
@RedisHash("cities")
public clreplaced City implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long id;
private String name;
private String state;
private String country;
private String map;
protected City() {
}
public City(String name, String country) {
this.name = name;
this.country = country;
}
public String getName() {
return this.name;
}
public String getState() {
return this.state;
}
public String getCountry() {
return this.country;
}
public String getMap() {
return this.map;
}
@Override
public String toString() {
return getName() + "," + getState() + "," + getCountry();
}
}
See More Examples