Advertisement
popov-aa

Geolocation

Apr 1st, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package com.helan.videoafisha.entitiy;
  2. import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
  3. import com.vladmihalcea.hibernate.type.json.JsonStringType;
  4. import lombok.EqualsAndHashCode;
  5. import lombok.Getter;
  6. import lombok.NoArgsConstructor;
  7. import lombok.Setter;
  8. import org.hibernate.annotations.TypeDef;
  9. import org.hibernate.annotations.TypeDefs;
  10.  
  11. import javax.persistence.MappedSuperclass;
  12.  
  13. @NoArgsConstructor
  14. @Getter @Setter
  15. @EqualsAndHashCode(onlyExplicitlyIncluded = true)
  16. @TypeDefs({
  17.         @TypeDef(name = "json", typeClass = JsonStringType.class),
  18.         @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
  19. })
  20. @MappedSuperclass
  21. public class Geolocation {
  22.     private Double latitude;
  23.     private Double longitude;
  24.     private Address address;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement