Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.helan.videoafisha.entitiy;
- import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
- import com.vladmihalcea.hibernate.type.json.JsonStringType;
- import lombok.EqualsAndHashCode;
- import lombok.Getter;
- import lombok.NoArgsConstructor;
- import lombok.Setter;
- import org.hibernate.annotations.TypeDef;
- import org.hibernate.annotations.TypeDefs;
- import javax.persistence.MappedSuperclass;
- @NoArgsConstructor
- @Getter @Setter
- @EqualsAndHashCode(onlyExplicitlyIncluded = true)
- @TypeDefs({
- @TypeDef(name = "json", typeClass = JsonStringType.class),
- @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
- })
- @MappedSuperclass
- public class Geolocation {
- private Double latitude;
- private Double longitude;
- private Address address;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement