mirror of
https://gitea.gofwd.group/Forward_Group/ballistic-builder-spring.git
synced 2025-12-06 02:56:44 -05:00
finally
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package group.goforward.ballistic;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class BallisticApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BallisticApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
package group.goforward.ballistic;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class BallisticApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BallisticApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,57 +1,57 @@
|
||||
package group.goforward.ballistic.controllers;
|
||||
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import group.goforward.ballistic.service.PsaService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/psa")
|
||||
public class PsaController {
|
||||
|
||||
private final PsaService psaService;
|
||||
|
||||
@Autowired
|
||||
public PsaController(PsaService psaService) {
|
||||
this.psaService = psaService;
|
||||
}
|
||||
|
||||
@GetMapping("/all")
|
||||
public List<Psa> getAllPsa() {
|
||||
return psaService.findAll();
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
public ResponseEntity<Psa> getPsaById(@PathVariable UUID id) {
|
||||
Optional<Psa> psa = psaService.findById(id);
|
||||
return psa.map(ResponseEntity::ok).orElseGet(() -> ResponseEntity.notFound().build());
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
public Psa createPsa(@RequestBody Psa psa) {
|
||||
return psaService.save(psa);
|
||||
}
|
||||
|
||||
@PutMapping("/{id}")
|
||||
public ResponseEntity<Psa> updatePsa(@PathVariable UUID id, @RequestBody Psa psaDetails) {
|
||||
Optional<Psa> psa = psaService.findById(id);
|
||||
if (psa.isPresent()) {
|
||||
Psa updatedPsa = psa.get();
|
||||
// Update fields of the Psa entity as needed
|
||||
return ResponseEntity.ok(psaService.save(updatedPsa));
|
||||
} else {
|
||||
return ResponseEntity.notFound().build();
|
||||
}
|
||||
}
|
||||
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseEntity<Void> deletePsa(@PathVariable UUID id) {
|
||||
psaService.deleteById(id);
|
||||
return ResponseEntity.noContent().build();
|
||||
}
|
||||
}
|
||||
package group.goforward.ballistic.controllers;
|
||||
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import group.goforward.ballistic.service.PsaService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/psa")
|
||||
public class PsaController {
|
||||
|
||||
private final PsaService psaService;
|
||||
|
||||
@Autowired
|
||||
public PsaController(PsaService psaService) {
|
||||
this.psaService = psaService;
|
||||
}
|
||||
|
||||
@GetMapping("/all")
|
||||
public List<Psa> getAllPsa() {
|
||||
return psaService.findAll();
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
public ResponseEntity<Psa> getPsaById(@PathVariable UUID id) {
|
||||
Optional<Psa> psa = psaService.findById(id);
|
||||
return psa.map(ResponseEntity::ok).orElseGet(() -> ResponseEntity.notFound().build());
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
public Psa createPsa(@RequestBody Psa psa) {
|
||||
return psaService.save(psa);
|
||||
}
|
||||
|
||||
@PutMapping("/{id}")
|
||||
public ResponseEntity<Psa> updatePsa(@PathVariable UUID id, @RequestBody Psa psaDetails) {
|
||||
Optional<Psa> psa = psaService.findById(id);
|
||||
if (psa.isPresent()) {
|
||||
Psa updatedPsa = psa.get();
|
||||
// Update fields of the Psa entity as needed
|
||||
return ResponseEntity.ok(psaService.save(updatedPsa));
|
||||
} else {
|
||||
return ResponseEntity.notFound().build();
|
||||
}
|
||||
}
|
||||
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseEntity<Void> deletePsa(@PathVariable UUID id) {
|
||||
psaService.deleteById(id);
|
||||
return ResponseEntity.noContent().build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,160 +1,160 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "accounts")
|
||||
public class Account {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "id", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private UUID userId;
|
||||
|
||||
@Column(name = "type", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String type;
|
||||
|
||||
@Column(name = "provider", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String provider;
|
||||
|
||||
@Column(name = "provider_account_id", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String providerAccountId;
|
||||
|
||||
@Column(name = "refresh_token", length = Integer.MAX_VALUE)
|
||||
private String refreshToken;
|
||||
|
||||
@Column(name = "access_token", length = Integer.MAX_VALUE)
|
||||
private String accessToken;
|
||||
|
||||
@Column(name = "expires_at")
|
||||
private Integer expiresAt;
|
||||
|
||||
@Column(name = "token_type", length = Integer.MAX_VALUE)
|
||||
private String tokenType;
|
||||
|
||||
@Column(name = "id_token", length = Integer.MAX_VALUE)
|
||||
private String idToken;
|
||||
|
||||
@Column(name = "session_state", length = Integer.MAX_VALUE)
|
||||
private String sessionState;
|
||||
|
||||
@Column(name = "scope", length = Integer.MAX_VALUE)
|
||||
private String scope;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public UUID getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(UUID userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
public String getProviderAccountId() {
|
||||
return providerAccountId;
|
||||
}
|
||||
|
||||
public void setProviderAccountId(String providerAccountId) {
|
||||
this.providerAccountId = providerAccountId;
|
||||
}
|
||||
|
||||
public String getRefreshToken() {
|
||||
return refreshToken;
|
||||
}
|
||||
|
||||
public void setRefreshToken(String refreshToken) {
|
||||
this.refreshToken = refreshToken;
|
||||
}
|
||||
|
||||
public String getAccessToken() {
|
||||
return accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
public Integer getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(Integer expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public String getTokenType() {
|
||||
return tokenType;
|
||||
}
|
||||
|
||||
public void setTokenType(String tokenType) {
|
||||
this.tokenType = tokenType;
|
||||
}
|
||||
|
||||
public String getIdToken() {
|
||||
return idToken;
|
||||
}
|
||||
|
||||
public void setIdToken(String idToken) {
|
||||
this.idToken = idToken;
|
||||
}
|
||||
|
||||
public String getSessionState() {
|
||||
return sessionState;
|
||||
}
|
||||
|
||||
public void setSessionState(String sessionState) {
|
||||
this.sessionState = sessionState;
|
||||
}
|
||||
|
||||
public String getScope() {
|
||||
return scope;
|
||||
}
|
||||
|
||||
public void setScope(String scope) {
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "accounts")
|
||||
public class Account {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "id", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private UUID userId;
|
||||
|
||||
@Column(name = "type", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String type;
|
||||
|
||||
@Column(name = "provider", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String provider;
|
||||
|
||||
@Column(name = "provider_account_id", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String providerAccountId;
|
||||
|
||||
@Column(name = "refresh_token", length = Integer.MAX_VALUE)
|
||||
private String refreshToken;
|
||||
|
||||
@Column(name = "access_token", length = Integer.MAX_VALUE)
|
||||
private String accessToken;
|
||||
|
||||
@Column(name = "expires_at")
|
||||
private Integer expiresAt;
|
||||
|
||||
@Column(name = "token_type", length = Integer.MAX_VALUE)
|
||||
private String tokenType;
|
||||
|
||||
@Column(name = "id_token", length = Integer.MAX_VALUE)
|
||||
private String idToken;
|
||||
|
||||
@Column(name = "session_state", length = Integer.MAX_VALUE)
|
||||
private String sessionState;
|
||||
|
||||
@Column(name = "scope", length = Integer.MAX_VALUE)
|
||||
private String scope;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public UUID getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(UUID userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
public String getProviderAccountId() {
|
||||
return providerAccountId;
|
||||
}
|
||||
|
||||
public void setProviderAccountId(String providerAccountId) {
|
||||
this.providerAccountId = providerAccountId;
|
||||
}
|
||||
|
||||
public String getRefreshToken() {
|
||||
return refreshToken;
|
||||
}
|
||||
|
||||
public void setRefreshToken(String refreshToken) {
|
||||
this.refreshToken = refreshToken;
|
||||
}
|
||||
|
||||
public String getAccessToken() {
|
||||
return accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
public Integer getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(Integer expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public String getTokenType() {
|
||||
return tokenType;
|
||||
}
|
||||
|
||||
public void setTokenType(String tokenType) {
|
||||
this.tokenType = tokenType;
|
||||
}
|
||||
|
||||
public String getIdToken() {
|
||||
return idToken;
|
||||
}
|
||||
|
||||
public void setIdToken(String idToken) {
|
||||
this.idToken = idToken;
|
||||
}
|
||||
|
||||
public String getSessionState() {
|
||||
return sessionState;
|
||||
}
|
||||
|
||||
public void setSessionState(String sessionState) {
|
||||
this.sessionState = sessionState;
|
||||
}
|
||||
|
||||
public String getScope() {
|
||||
return scope;
|
||||
}
|
||||
|
||||
public void setScope(String scope) {
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface AccountRepository extends JpaRepository<Account, UUID> {
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface AccountRepository extends JpaRepository<Account, UUID> {
|
||||
}
|
||||
@@ -1,293 +1,293 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "aero_precision")
|
||||
public class
|
||||
AeroPrecision {
|
||||
@Id
|
||||
@Column(name = "sku", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "manufacturer_id", length = Integer.MAX_VALUE)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "brand_name", length = Integer.MAX_VALUE)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "product_name", length = Integer.MAX_VALUE)
|
||||
private String productName;
|
||||
|
||||
@Column(name = "long_description", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "short_description", length = Integer.MAX_VALUE)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "department", length = Integer.MAX_VALUE)
|
||||
private String department;
|
||||
|
||||
@Column(name = "category", length = Integer.MAX_VALUE)
|
||||
private String category;
|
||||
|
||||
@Column(name = "subcategory", length = Integer.MAX_VALUE)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "thumb_url", length = Integer.MAX_VALUE)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "image_url", length = Integer.MAX_VALUE)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "buy_link", length = Integer.MAX_VALUE)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "keywords", length = Integer.MAX_VALUE)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "reviews", length = Integer.MAX_VALUE)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "retail_price")
|
||||
private BigDecimal retailPrice;
|
||||
|
||||
@Column(name = "sale_price")
|
||||
private BigDecimal salePrice;
|
||||
|
||||
@Column(name = "brand_page_link", length = Integer.MAX_VALUE)
|
||||
private String brandPageLink;
|
||||
|
||||
@Column(name = "brand_logo_image", length = Integer.MAX_VALUE)
|
||||
private String brandLogoImage;
|
||||
|
||||
@Column(name = "product_page_view_tracking", length = Integer.MAX_VALUE)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "variants_xml", length = Integer.MAX_VALUE)
|
||||
private String variantsXml;
|
||||
|
||||
@Column(name = "medium_image_url", length = Integer.MAX_VALUE)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "product_content_widget", length = Integer.MAX_VALUE)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "google_categorization", length = Integer.MAX_VALUE)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "item_based_commission", length = Integer.MAX_VALUE)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public BigDecimal getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(BigDecimal retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(BigDecimal salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getVariantsXml() {
|
||||
return variantsXml;
|
||||
}
|
||||
|
||||
public void setVariantsXml(String variantsXml) {
|
||||
this.variantsXml = variantsXml;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "aero_precision")
|
||||
public class
|
||||
AeroPrecision {
|
||||
@Id
|
||||
@Column(name = "sku", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "manufacturer_id", length = Integer.MAX_VALUE)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "brand_name", length = Integer.MAX_VALUE)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "product_name", length = Integer.MAX_VALUE)
|
||||
private String productName;
|
||||
|
||||
@Column(name = "long_description", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "short_description", length = Integer.MAX_VALUE)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "department", length = Integer.MAX_VALUE)
|
||||
private String department;
|
||||
|
||||
@Column(name = "category", length = Integer.MAX_VALUE)
|
||||
private String category;
|
||||
|
||||
@Column(name = "subcategory", length = Integer.MAX_VALUE)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "thumb_url", length = Integer.MAX_VALUE)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "image_url", length = Integer.MAX_VALUE)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "buy_link", length = Integer.MAX_VALUE)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "keywords", length = Integer.MAX_VALUE)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "reviews", length = Integer.MAX_VALUE)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "retail_price")
|
||||
private BigDecimal retailPrice;
|
||||
|
||||
@Column(name = "sale_price")
|
||||
private BigDecimal salePrice;
|
||||
|
||||
@Column(name = "brand_page_link", length = Integer.MAX_VALUE)
|
||||
private String brandPageLink;
|
||||
|
||||
@Column(name = "brand_logo_image", length = Integer.MAX_VALUE)
|
||||
private String brandLogoImage;
|
||||
|
||||
@Column(name = "product_page_view_tracking", length = Integer.MAX_VALUE)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "variants_xml", length = Integer.MAX_VALUE)
|
||||
private String variantsXml;
|
||||
|
||||
@Column(name = "medium_image_url", length = Integer.MAX_VALUE)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "product_content_widget", length = Integer.MAX_VALUE)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "google_categorization", length = Integer.MAX_VALUE)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "item_based_commission", length = Integer.MAX_VALUE)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public BigDecimal getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(BigDecimal retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(BigDecimal salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getVariantsXml() {
|
||||
return variantsXml;
|
||||
}
|
||||
|
||||
public void setVariantsXml(String variantsXml) {
|
||||
this.variantsXml = variantsXml;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,88 +1,88 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.EmbeddedId;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "authenticator")
|
||||
public class Authenticator {
|
||||
@EmbeddedId
|
||||
private AuthenticatorId id;
|
||||
|
||||
@Column(name = "\"providerAccountId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String providerAccountId;
|
||||
|
||||
@Column(name = "\"credentialPublicKey\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialPublicKey;
|
||||
|
||||
@Column(name = "counter", nullable = false)
|
||||
private Integer counter;
|
||||
|
||||
@Column(name = "\"credentialDeviceType\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialDeviceType;
|
||||
|
||||
@Column(name = "\"credentialBackedUp\"", nullable = false)
|
||||
private Boolean credentialBackedUp = false;
|
||||
|
||||
@Column(name = "transports", length = Integer.MAX_VALUE)
|
||||
private String transports;
|
||||
|
||||
public AuthenticatorId getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(AuthenticatorId id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getProviderAccountId() {
|
||||
return providerAccountId;
|
||||
}
|
||||
|
||||
public void setProviderAccountId(String providerAccountId) {
|
||||
this.providerAccountId = providerAccountId;
|
||||
}
|
||||
|
||||
public String getCredentialPublicKey() {
|
||||
return credentialPublicKey;
|
||||
}
|
||||
|
||||
public void setCredentialPublicKey(String credentialPublicKey) {
|
||||
this.credentialPublicKey = credentialPublicKey;
|
||||
}
|
||||
|
||||
public Integer getCounter() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
public void setCounter(Integer counter) {
|
||||
this.counter = counter;
|
||||
}
|
||||
|
||||
public String getCredentialDeviceType() {
|
||||
return credentialDeviceType;
|
||||
}
|
||||
|
||||
public void setCredentialDeviceType(String credentialDeviceType) {
|
||||
this.credentialDeviceType = credentialDeviceType;
|
||||
}
|
||||
|
||||
public Boolean getCredentialBackedUp() {
|
||||
return credentialBackedUp;
|
||||
}
|
||||
|
||||
public void setCredentialBackedUp(Boolean credentialBackedUp) {
|
||||
this.credentialBackedUp = credentialBackedUp;
|
||||
}
|
||||
|
||||
public String getTransports() {
|
||||
return transports;
|
||||
}
|
||||
|
||||
public void setTransports(String transports) {
|
||||
this.transports = transports;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.EmbeddedId;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "authenticator")
|
||||
public class Authenticator {
|
||||
@EmbeddedId
|
||||
private AuthenticatorId id;
|
||||
|
||||
@Column(name = "\"providerAccountId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String providerAccountId;
|
||||
|
||||
@Column(name = "\"credentialPublicKey\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialPublicKey;
|
||||
|
||||
@Column(name = "counter", nullable = false)
|
||||
private Integer counter;
|
||||
|
||||
@Column(name = "\"credentialDeviceType\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialDeviceType;
|
||||
|
||||
@Column(name = "\"credentialBackedUp\"", nullable = false)
|
||||
private Boolean credentialBackedUp = false;
|
||||
|
||||
@Column(name = "transports", length = Integer.MAX_VALUE)
|
||||
private String transports;
|
||||
|
||||
public AuthenticatorId getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(AuthenticatorId id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getProviderAccountId() {
|
||||
return providerAccountId;
|
||||
}
|
||||
|
||||
public void setProviderAccountId(String providerAccountId) {
|
||||
this.providerAccountId = providerAccountId;
|
||||
}
|
||||
|
||||
public String getCredentialPublicKey() {
|
||||
return credentialPublicKey;
|
||||
}
|
||||
|
||||
public void setCredentialPublicKey(String credentialPublicKey) {
|
||||
this.credentialPublicKey = credentialPublicKey;
|
||||
}
|
||||
|
||||
public Integer getCounter() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
public void setCounter(Integer counter) {
|
||||
this.counter = counter;
|
||||
}
|
||||
|
||||
public String getCredentialDeviceType() {
|
||||
return credentialDeviceType;
|
||||
}
|
||||
|
||||
public void setCredentialDeviceType(String credentialDeviceType) {
|
||||
this.credentialDeviceType = credentialDeviceType;
|
||||
}
|
||||
|
||||
public Boolean getCredentialBackedUp() {
|
||||
return credentialBackedUp;
|
||||
}
|
||||
|
||||
public void setCredentialBackedUp(Boolean credentialBackedUp) {
|
||||
this.credentialBackedUp = credentialBackedUp;
|
||||
}
|
||||
|
||||
public String getTransports() {
|
||||
return transports;
|
||||
}
|
||||
|
||||
public void setTransports(String transports) {
|
||||
this.transports = transports;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,48 +1,48 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Embeddable;
|
||||
import org.hibernate.Hibernate;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Embeddable
|
||||
public class AuthenticatorId implements java.io.Serializable {
|
||||
private static final long serialVersionUID = -4147080603801184737L;
|
||||
@Column(name = "\"credentialId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialId;
|
||||
|
||||
@Column(name = "\"userId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String userId;
|
||||
|
||||
public String getCredentialId() {
|
||||
return credentialId;
|
||||
}
|
||||
|
||||
public void setCredentialId(String credentialId) {
|
||||
this.credentialId = credentialId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
|
||||
AuthenticatorId entity = (AuthenticatorId) o;
|
||||
return Objects.equals(this.credentialId, entity.credentialId) &&
|
||||
Objects.equals(this.userId, entity.userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(credentialId, userId);
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Embeddable;
|
||||
import org.hibernate.Hibernate;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Embeddable
|
||||
public class AuthenticatorId implements java.io.Serializable {
|
||||
private static final long serialVersionUID = -4147080603801184737L;
|
||||
@Column(name = "\"credentialId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String credentialId;
|
||||
|
||||
@Column(name = "\"userId\"", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String userId;
|
||||
|
||||
public String getCredentialId() {
|
||||
return credentialId;
|
||||
}
|
||||
|
||||
public void setCredentialId(String credentialId) {
|
||||
this.credentialId = credentialId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
|
||||
AuthenticatorId entity = (AuthenticatorId) o;
|
||||
return Objects.equals(this.credentialId, entity.credentialId) &&
|
||||
Objects.equals(this.userId, entity.userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(credentialId, userId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,107 +1,107 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bal_resellers")
|
||||
public class BalReseller {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "website_url")
|
||||
private String websiteUrl;
|
||||
|
||||
@Column(name = "contact_email", length = 100)
|
||||
private String contactEmail;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public String getWebsiteUrl() {
|
||||
return websiteUrl;
|
||||
}
|
||||
|
||||
public void setWebsiteUrl(String websiteUrl) {
|
||||
this.websiteUrl = websiteUrl;
|
||||
}
|
||||
|
||||
public String getContactEmail() {
|
||||
return contactEmail;
|
||||
}
|
||||
|
||||
public void setContactEmail(String contactEmail) {
|
||||
this.contactEmail = contactEmail;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bal_resellers")
|
||||
public class BalReseller {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "website_url")
|
||||
private String websiteUrl;
|
||||
|
||||
@Column(name = "contact_email", length = 100)
|
||||
private String contactEmail;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public String getWebsiteUrl() {
|
||||
return websiteUrl;
|
||||
}
|
||||
|
||||
public void setWebsiteUrl(String websiteUrl) {
|
||||
this.websiteUrl = websiteUrl;
|
||||
}
|
||||
|
||||
public String getContactEmail() {
|
||||
return contactEmail;
|
||||
}
|
||||
|
||||
public void setContactEmail(String contactEmail) {
|
||||
this.contactEmail = contactEmail;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,393 +1,393 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bb_products")
|
||||
public class BbProduct {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@Column(name = "\"UPC\"", length = 100)
|
||||
private String upc;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "\"MANUFACTURER_ID\"", length = 50)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "\"BRAND_NAME\"", length = 50)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "\"PRODUCT_NAME\"")
|
||||
private String productName;
|
||||
|
||||
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "\"SHORT_DESCRIPTION\"", length = 500)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "\"DEPARTMENT\"", length = 100)
|
||||
private String department;
|
||||
|
||||
@Column(name = "\"CATEGORY\"", length = 100)
|
||||
private String category;
|
||||
|
||||
@Column(name = "\"SUBCATEGORY\"", length = 100)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "\"THUMB_URL\"", length = 500)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "\"IMAGE_URL\"", length = 500)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "\"BUY_LINK\"", length = 500)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "\"KEYWORDS\"", length = 500)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "\"REVIEWS\"", length = 500)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "\"RETAIL_PRICE\"", length = 50)
|
||||
private String retailPrice;
|
||||
|
||||
@Column(name = "\"SALE_PRICE\"", length = 50)
|
||||
private String salePrice;
|
||||
|
||||
@Column(name = "\"BRAND_PAGE_LINK\"", length = 500)
|
||||
private String brandPageLink;
|
||||
|
||||
@Column(name = "\"BRAND_LOGO_IMAGE\"", length = 500)
|
||||
private String brandLogoImage;
|
||||
|
||||
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 500)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "\"PARENT_GROUP_ID\"", length = 200)
|
||||
private String parentGroupId;
|
||||
|
||||
@Column(name = "\"FINELINE\"", length = 200)
|
||||
private String fineline;
|
||||
|
||||
@Column(name = "\"SUPERFINELINE\"", length = 200)
|
||||
private String superfineline;
|
||||
|
||||
@Column(name = "\"MODELNUMBER\"", length = 100)
|
||||
private String modelnumber;
|
||||
|
||||
@Column(name = "\"CALIBER\"", length = 200)
|
||||
private String caliber;
|
||||
|
||||
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 500)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 500)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 500)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 500)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION RATE\"", length = 50)
|
||||
private String itemBasedCommissionRate;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUpc() {
|
||||
return upc;
|
||||
}
|
||||
|
||||
public void setUpc(String upc) {
|
||||
this.upc = upc;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public String getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(String retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public String getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(String salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getParentGroupId() {
|
||||
return parentGroupId;
|
||||
}
|
||||
|
||||
public void setParentGroupId(String parentGroupId) {
|
||||
this.parentGroupId = parentGroupId;
|
||||
}
|
||||
|
||||
public String getFineline() {
|
||||
return fineline;
|
||||
}
|
||||
|
||||
public void setFineline(String fineline) {
|
||||
this.fineline = fineline;
|
||||
}
|
||||
|
||||
public String getSuperfineline() {
|
||||
return superfineline;
|
||||
}
|
||||
|
||||
public void setSuperfineline(String superfineline) {
|
||||
this.superfineline = superfineline;
|
||||
}
|
||||
|
||||
public String getModelnumber() {
|
||||
return modelnumber;
|
||||
}
|
||||
|
||||
public void setModelnumber(String modelnumber) {
|
||||
this.modelnumber = modelnumber;
|
||||
}
|
||||
|
||||
public String getCaliber() {
|
||||
return caliber;
|
||||
}
|
||||
|
||||
public void setCaliber(String caliber) {
|
||||
this.caliber = caliber;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public String getItemBasedCommissionRate() {
|
||||
return itemBasedCommissionRate;
|
||||
}
|
||||
|
||||
public void setItemBasedCommissionRate(String itemBasedCommissionRate) {
|
||||
this.itemBasedCommissionRate = itemBasedCommissionRate;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bb_products")
|
||||
public class BbProduct {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@Column(name = "\"UPC\"", length = 100)
|
||||
private String upc;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "\"MANUFACTURER_ID\"", length = 50)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "\"BRAND_NAME\"", length = 50)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "\"PRODUCT_NAME\"")
|
||||
private String productName;
|
||||
|
||||
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "\"SHORT_DESCRIPTION\"", length = 500)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "\"DEPARTMENT\"", length = 100)
|
||||
private String department;
|
||||
|
||||
@Column(name = "\"CATEGORY\"", length = 100)
|
||||
private String category;
|
||||
|
||||
@Column(name = "\"SUBCATEGORY\"", length = 100)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "\"THUMB_URL\"", length = 500)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "\"IMAGE_URL\"", length = 500)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "\"BUY_LINK\"", length = 500)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "\"KEYWORDS\"", length = 500)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "\"REVIEWS\"", length = 500)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "\"RETAIL_PRICE\"", length = 50)
|
||||
private String retailPrice;
|
||||
|
||||
@Column(name = "\"SALE_PRICE\"", length = 50)
|
||||
private String salePrice;
|
||||
|
||||
@Column(name = "\"BRAND_PAGE_LINK\"", length = 500)
|
||||
private String brandPageLink;
|
||||
|
||||
@Column(name = "\"BRAND_LOGO_IMAGE\"", length = 500)
|
||||
private String brandLogoImage;
|
||||
|
||||
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 500)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "\"PARENT_GROUP_ID\"", length = 200)
|
||||
private String parentGroupId;
|
||||
|
||||
@Column(name = "\"FINELINE\"", length = 200)
|
||||
private String fineline;
|
||||
|
||||
@Column(name = "\"SUPERFINELINE\"", length = 200)
|
||||
private String superfineline;
|
||||
|
||||
@Column(name = "\"MODELNUMBER\"", length = 100)
|
||||
private String modelnumber;
|
||||
|
||||
@Column(name = "\"CALIBER\"", length = 200)
|
||||
private String caliber;
|
||||
|
||||
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 500)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 500)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 500)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 500)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION RATE\"", length = 50)
|
||||
private String itemBasedCommissionRate;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUpc() {
|
||||
return upc;
|
||||
}
|
||||
|
||||
public void setUpc(String upc) {
|
||||
this.upc = upc;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public String getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(String retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public String getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(String salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getParentGroupId() {
|
||||
return parentGroupId;
|
||||
}
|
||||
|
||||
public void setParentGroupId(String parentGroupId) {
|
||||
this.parentGroupId = parentGroupId;
|
||||
}
|
||||
|
||||
public String getFineline() {
|
||||
return fineline;
|
||||
}
|
||||
|
||||
public void setFineline(String fineline) {
|
||||
this.fineline = fineline;
|
||||
}
|
||||
|
||||
public String getSuperfineline() {
|
||||
return superfineline;
|
||||
}
|
||||
|
||||
public void setSuperfineline(String superfineline) {
|
||||
this.superfineline = superfineline;
|
||||
}
|
||||
|
||||
public String getModelnumber() {
|
||||
return modelnumber;
|
||||
}
|
||||
|
||||
public void setModelnumber(String modelnumber) {
|
||||
this.modelnumber = modelnumber;
|
||||
}
|
||||
|
||||
public String getCaliber() {
|
||||
return caliber;
|
||||
}
|
||||
|
||||
public void setCaliber(String caliber) {
|
||||
this.caliber = caliber;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public String getItemBasedCommissionRate() {
|
||||
return itemBasedCommissionRate;
|
||||
}
|
||||
|
||||
public void setItemBasedCommissionRate(String itemBasedCommissionRate) {
|
||||
this.itemBasedCommissionRate = itemBasedCommissionRate;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,85 +1,85 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "brands")
|
||||
public class Brand {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "brands")
|
||||
public class Brand {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,107 +1,107 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "builds")
|
||||
public class Build {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "account_id", nullable = false)
|
||||
private Integer accountId;
|
||||
|
||||
@Column(name = "name", nullable = false)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", length = Integer.MAX_VALUE)
|
||||
private String description;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
|
||||
public void setAccountId(Integer accountId) {
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "builds")
|
||||
public class Build {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "account_id", nullable = false)
|
||||
private Integer accountId;
|
||||
|
||||
@Column(name = "name", nullable = false)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", length = Integer.MAX_VALUE)
|
||||
private String description;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
|
||||
public void setAccountId(Integer accountId) {
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,96 +1,96 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "builds_components")
|
||||
public class BuildsComponent {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "build_id", nullable = false)
|
||||
private Integer buildId;
|
||||
|
||||
@Column(name = "product_id", nullable = false)
|
||||
private Integer productId;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getBuildId() {
|
||||
return buildId;
|
||||
}
|
||||
|
||||
public void setBuildId(Integer buildId) {
|
||||
this.buildId = buildId;
|
||||
}
|
||||
|
||||
public Integer getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Integer productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "builds_components")
|
||||
public class BuildsComponent {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "build_id", nullable = false)
|
||||
private Integer buildId;
|
||||
|
||||
@Column(name = "product_id", nullable = false)
|
||||
private Integer productId;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getBuildId() {
|
||||
return buildId;
|
||||
}
|
||||
|
||||
public void setBuildId(Integer buildId) {
|
||||
this.buildId = buildId;
|
||||
}
|
||||
|
||||
public Integer getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Integer productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,96 +1,96 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "categories")
|
||||
public class Category {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "parent_category_id")
|
||||
private Integer parentCategoryId;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Integer getParentCategoryId() {
|
||||
return parentCategoryId;
|
||||
}
|
||||
|
||||
public void setParentCategoryId(Integer parentCategoryId) {
|
||||
this.parentCategoryId = parentCategoryId;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "categories")
|
||||
public class Category {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "parent_category_id")
|
||||
private Integer parentCategoryId;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Integer getParentCategoryId() {
|
||||
return parentCategoryId;
|
||||
}
|
||||
|
||||
public void setParentCategoryId(Integer parentCategoryId) {
|
||||
this.parentCategoryId = parentCategoryId;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,85 +1,85 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "compartment")
|
||||
public class Compartment {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "id", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", length = 300)
|
||||
private String description;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "compartment")
|
||||
public class Compartment {
|
||||
@Id
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "id", nullable = false)
|
||||
private UUID id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", length = 300)
|
||||
private String description;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,85 +1,85 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "component_type")
|
||||
public class ComponentType {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "component_type")
|
||||
public class ComponentType {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,71 +1,71 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "email_verification_codes")
|
||||
public class EmailVerificationCode {
|
||||
@Id
|
||||
@ColumnDefault("nextval('email_verification_codes_id_seq')")
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "email", nullable = false)
|
||||
private String email;
|
||||
|
||||
@Column(name = "code", nullable = false, length = 8)
|
||||
private String code;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "email_verification_codes")
|
||||
public class EmailVerificationCode {
|
||||
@Id
|
||||
@ColumnDefault("nextval('email_verification_codes_id_seq')")
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "email", nullable = false)
|
||||
private String email;
|
||||
|
||||
@Column(name = "code", nullable = false, length = 8)
|
||||
private String code;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,85 +1,85 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "manufacturer")
|
||||
public class Manufacturer {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "manufacturer")
|
||||
public class Manufacturer {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false, length = 100)
|
||||
private String name;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,47 +1,47 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "password_reset_tokens")
|
||||
public class PasswordResetToken {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 40)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "password_reset_tokens")
|
||||
public class PasswordResetToken {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 40)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,116 +1,116 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "posts")
|
||||
public class Post {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 15)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "title", nullable = false)
|
||||
private String title;
|
||||
|
||||
@Column(name = "excerpt", nullable = false)
|
||||
private String excerpt;
|
||||
|
||||
@Column(name = "content", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String content;
|
||||
|
||||
@ColumnDefault("'draft'")
|
||||
@Column(name = "status", nullable = false, length = 10)
|
||||
private String status;
|
||||
|
||||
@Column(name = "tags")
|
||||
private String tags;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getExcerpt() {
|
||||
return excerpt;
|
||||
}
|
||||
|
||||
public void setExcerpt(String excerpt) {
|
||||
this.excerpt = excerpt;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "posts")
|
||||
public class Post {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 15)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "title", nullable = false)
|
||||
private String title;
|
||||
|
||||
@Column(name = "excerpt", nullable = false)
|
||||
private String excerpt;
|
||||
|
||||
@Column(name = "content", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String content;
|
||||
|
||||
@ColumnDefault("'draft'")
|
||||
@Column(name = "status", nullable = false, length = 10)
|
||||
private String status;
|
||||
|
||||
@Column(name = "tags")
|
||||
private String tags;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getExcerpt() {
|
||||
return excerpt;
|
||||
}
|
||||
|
||||
public void setExcerpt(String excerpt) {
|
||||
this.excerpt = excerpt;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,129 +1,129 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "products")
|
||||
public class Product {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String description;
|
||||
|
||||
@Column(name = "price", nullable = false)
|
||||
private BigDecimal price;
|
||||
|
||||
@Column(name = "reseller_id", nullable = false)
|
||||
private Integer resellerId;
|
||||
|
||||
@Column(name = "category_id", nullable = false)
|
||||
private Integer categoryId;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@Column(name = "stock_qty")
|
||||
private Integer stockQty;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public Integer getResellerId() {
|
||||
return resellerId;
|
||||
}
|
||||
|
||||
public void setResellerId(Integer resellerId) {
|
||||
this.resellerId = resellerId;
|
||||
}
|
||||
|
||||
public Integer getCategoryId() {
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setCategoryId(Integer categoryId) {
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Integer getStockQty() {
|
||||
return stockQty;
|
||||
}
|
||||
|
||||
public void setStockQty(Integer stockQty) {
|
||||
this.stockQty = stockQty;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "products")
|
||||
public class Product {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "name", nullable = false)
|
||||
private String name;
|
||||
|
||||
@Column(name = "description", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String description;
|
||||
|
||||
@Column(name = "price", nullable = false)
|
||||
private BigDecimal price;
|
||||
|
||||
@Column(name = "reseller_id", nullable = false)
|
||||
private Integer resellerId;
|
||||
|
||||
@Column(name = "category_id", nullable = false)
|
||||
private Integer categoryId;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@Column(name = "stock_qty")
|
||||
private Integer stockQty;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public Integer getResellerId() {
|
||||
return resellerId;
|
||||
}
|
||||
|
||||
public void setResellerId(Integer resellerId) {
|
||||
this.resellerId = resellerId;
|
||||
}
|
||||
|
||||
public Integer getCategoryId() {
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setCategoryId(Integer categoryId) {
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Integer getStockQty() {
|
||||
return stockQty;
|
||||
}
|
||||
|
||||
public void setStockQty(Integer stockQty) {
|
||||
this.stockQty = stockQty;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,107 +1,107 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "product_feeds")
|
||||
public class ProductFeed {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "reseller_id", nullable = false)
|
||||
private Integer resellerId;
|
||||
|
||||
@Column(name = "feed_url", nullable = false)
|
||||
private String feedUrl;
|
||||
|
||||
@Column(name = "last_update")
|
||||
private Instant lastUpdate;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getResellerId() {
|
||||
return resellerId;
|
||||
}
|
||||
|
||||
public void setResellerId(Integer resellerId) {
|
||||
this.resellerId = resellerId;
|
||||
}
|
||||
|
||||
public String getFeedUrl() {
|
||||
return feedUrl;
|
||||
}
|
||||
|
||||
public void setFeedUrl(String feedUrl) {
|
||||
this.feedUrl = feedUrl;
|
||||
}
|
||||
|
||||
public Instant getLastUpdate() {
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
public void setLastUpdate(Instant lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "product_feeds")
|
||||
public class ProductFeed {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "reseller_id", nullable = false)
|
||||
private Integer resellerId;
|
||||
|
||||
@Column(name = "feed_url", nullable = false)
|
||||
private String feedUrl;
|
||||
|
||||
@Column(name = "last_update")
|
||||
private Instant lastUpdate;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "updated_at", nullable = false)
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("now()")
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private Instant createdAt;
|
||||
|
||||
@Column(name = "deleted_at")
|
||||
private Instant deletedAt;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getResellerId() {
|
||||
return resellerId;
|
||||
}
|
||||
|
||||
public void setResellerId(Integer resellerId) {
|
||||
this.resellerId = resellerId;
|
||||
}
|
||||
|
||||
public String getFeedUrl() {
|
||||
return feedUrl;
|
||||
}
|
||||
|
||||
public void setFeedUrl(String feedUrl) {
|
||||
this.feedUrl = feedUrl;
|
||||
}
|
||||
|
||||
public Instant getLastUpdate() {
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
public void setLastUpdate(Instant lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Instant deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,359 +1,359 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "psa")
|
||||
public class Psa {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "\"MANUFACTURER_ID\"", length = 50)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "\"BRAND_NAME\"", length = 50)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "\"PRODUCT_NAME\"")
|
||||
private String productName;
|
||||
|
||||
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "\"SHORT_DESCRIPTION\"", length = 50)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "\"DEPARTMENT\"", length = 50)
|
||||
private String department;
|
||||
|
||||
@Column(name = "\"CATEGORY\"", length = 50)
|
||||
private String category;
|
||||
|
||||
@Column(name = "\"SUBCATEGORY\"", length = 50)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "\"THUMB_URL\"", length = 50)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "\"IMAGE_URL\"", length = 50)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "\"BUY_LINK\"", length = 128)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "\"KEYWORDS\"", length = 50)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "\"REVIEWS\"", length = 50)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "\"RETAIL_PRICE\"")
|
||||
private Float retailPrice;
|
||||
|
||||
@Column(name = "\"SALE_PRICE\"")
|
||||
private Float salePrice;
|
||||
|
||||
@Column(name = "\"BRAND_PAGE_LINK\"", length = 50)
|
||||
private String brandPageLink;
|
||||
|
||||
/* @Column(name = "\"BRAND_LOGO_IMAGE\"", length = 50)
|
||||
private String brandLogoImage;*/
|
||||
|
||||
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 256)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "\"PARENT_GROUP_ID\"", length = 50)
|
||||
private String parentGroupId;
|
||||
|
||||
@Column(name = "\"FINELINE\"", length = 50)
|
||||
private String fineline;
|
||||
|
||||
@Column(name = "\"SUPERFINELINE\"", length = 200)
|
||||
private String superfineline;
|
||||
|
||||
@Column(name = "\"MODELNUMBER\"", length = 50)
|
||||
private String modelnumber;
|
||||
|
||||
@Column(name = "\"CALIBER\"", length = 200)
|
||||
private String caliber;
|
||||
|
||||
@Column(name = "\"UPC\"", length = 100)
|
||||
private String upc;
|
||||
|
||||
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 50)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 256)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 50)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 50)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private String uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public Float getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(Float retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public Float getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(Float salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
/*
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
*/
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getParentGroupId() {
|
||||
return parentGroupId;
|
||||
}
|
||||
|
||||
public void setParentGroupId(String parentGroupId) {
|
||||
this.parentGroupId = parentGroupId;
|
||||
}
|
||||
|
||||
public String getFineline() {
|
||||
return fineline;
|
||||
}
|
||||
|
||||
public void setFineline(String fineline) {
|
||||
this.fineline = fineline;
|
||||
}
|
||||
|
||||
public String getSuperfineline() {
|
||||
return superfineline;
|
||||
}
|
||||
|
||||
public void setSuperfineline(String superfineline) {
|
||||
this.superfineline = superfineline;
|
||||
}
|
||||
|
||||
public String getModelnumber() {
|
||||
return modelnumber;
|
||||
}
|
||||
|
||||
public void setModelnumber(String modelnumber) {
|
||||
this.modelnumber = modelnumber;
|
||||
}
|
||||
|
||||
public String getCaliber() {
|
||||
return caliber;
|
||||
}
|
||||
|
||||
public void setCaliber(String caliber) {
|
||||
this.caliber = caliber;
|
||||
}
|
||||
|
||||
public String getUpc() {
|
||||
return upc;
|
||||
}
|
||||
|
||||
public void setUpc(String upc) {
|
||||
this.upc = upc;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "psa")
|
||||
public class Psa {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
@Column(name = "\"MANUFACTURER_ID\"", length = 50)
|
||||
private String manufacturerId;
|
||||
|
||||
@Column(name = "\"BRAND_NAME\"", length = 50)
|
||||
private String brandName;
|
||||
|
||||
@Column(name = "\"PRODUCT_NAME\"")
|
||||
private String productName;
|
||||
|
||||
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
|
||||
private String longDescription;
|
||||
|
||||
@Column(name = "\"SHORT_DESCRIPTION\"", length = 50)
|
||||
private String shortDescription;
|
||||
|
||||
@Column(name = "\"DEPARTMENT\"", length = 50)
|
||||
private String department;
|
||||
|
||||
@Column(name = "\"CATEGORY\"", length = 50)
|
||||
private String category;
|
||||
|
||||
@Column(name = "\"SUBCATEGORY\"", length = 50)
|
||||
private String subcategory;
|
||||
|
||||
@Column(name = "\"THUMB_URL\"", length = 50)
|
||||
private String thumbUrl;
|
||||
|
||||
@Column(name = "\"IMAGE_URL\"", length = 50)
|
||||
private String imageUrl;
|
||||
|
||||
@Column(name = "\"BUY_LINK\"", length = 128)
|
||||
private String buyLink;
|
||||
|
||||
@Column(name = "\"KEYWORDS\"", length = 50)
|
||||
private String keywords;
|
||||
|
||||
@Column(name = "\"REVIEWS\"", length = 50)
|
||||
private String reviews;
|
||||
|
||||
@Column(name = "\"RETAIL_PRICE\"")
|
||||
private Float retailPrice;
|
||||
|
||||
@Column(name = "\"SALE_PRICE\"")
|
||||
private Float salePrice;
|
||||
|
||||
@Column(name = "\"BRAND_PAGE_LINK\"", length = 50)
|
||||
private String brandPageLink;
|
||||
|
||||
/* @Column(name = "\"BRAND_LOGO_IMAGE\"", length = 50)
|
||||
private String brandLogoImage;*/
|
||||
|
||||
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 256)
|
||||
private String productPageViewTracking;
|
||||
|
||||
@Column(name = "\"PARENT_GROUP_ID\"", length = 50)
|
||||
private String parentGroupId;
|
||||
|
||||
@Column(name = "\"FINELINE\"", length = 50)
|
||||
private String fineline;
|
||||
|
||||
@Column(name = "\"SUPERFINELINE\"", length = 200)
|
||||
private String superfineline;
|
||||
|
||||
@Column(name = "\"MODELNUMBER\"", length = 50)
|
||||
private String modelnumber;
|
||||
|
||||
@Column(name = "\"CALIBER\"", length = 200)
|
||||
private String caliber;
|
||||
|
||||
@Column(name = "\"UPC\"", length = 100)
|
||||
private String upc;
|
||||
|
||||
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 50)
|
||||
private String mediumImageUrl;
|
||||
|
||||
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 256)
|
||||
private String productContentWidget;
|
||||
|
||||
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 50)
|
||||
private String googleCategorization;
|
||||
|
||||
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 50)
|
||||
private String itemBasedCommission;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private String uuid;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
public String getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(String manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
|
||||
public String getBrandName() {
|
||||
return brandName;
|
||||
}
|
||||
|
||||
public void setBrandName(String brandName) {
|
||||
this.brandName = brandName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getLongDescription() {
|
||||
return longDescription;
|
||||
}
|
||||
|
||||
public void setLongDescription(String longDescription) {
|
||||
this.longDescription = longDescription;
|
||||
}
|
||||
|
||||
public String getShortDescription() {
|
||||
return shortDescription;
|
||||
}
|
||||
|
||||
public void setShortDescription(String shortDescription) {
|
||||
this.shortDescription = shortDescription;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getSubcategory() {
|
||||
return subcategory;
|
||||
}
|
||||
|
||||
public void setSubcategory(String subcategory) {
|
||||
this.subcategory = subcategory;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
public void setThumbUrl(String thumbUrl) {
|
||||
this.thumbUrl = thumbUrl;
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
public void setImageUrl(String imageUrl) {
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
public String getBuyLink() {
|
||||
return buyLink;
|
||||
}
|
||||
|
||||
public void setBuyLink(String buyLink) {
|
||||
this.buyLink = buyLink;
|
||||
}
|
||||
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public String getReviews() {
|
||||
return reviews;
|
||||
}
|
||||
|
||||
public void setReviews(String reviews) {
|
||||
this.reviews = reviews;
|
||||
}
|
||||
|
||||
public Float getRetailPrice() {
|
||||
return retailPrice;
|
||||
}
|
||||
|
||||
public void setRetailPrice(Float retailPrice) {
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public Float getSalePrice() {
|
||||
return salePrice;
|
||||
}
|
||||
|
||||
public void setSalePrice(Float salePrice) {
|
||||
this.salePrice = salePrice;
|
||||
}
|
||||
|
||||
public String getBrandPageLink() {
|
||||
return brandPageLink;
|
||||
}
|
||||
|
||||
public void setBrandPageLink(String brandPageLink) {
|
||||
this.brandPageLink = brandPageLink;
|
||||
}
|
||||
/*
|
||||
|
||||
public String getBrandLogoImage() {
|
||||
return brandLogoImage;
|
||||
}
|
||||
|
||||
public void setBrandLogoImage(String brandLogoImage) {
|
||||
this.brandLogoImage = brandLogoImage;
|
||||
}
|
||||
*/
|
||||
|
||||
public String getProductPageViewTracking() {
|
||||
return productPageViewTracking;
|
||||
}
|
||||
|
||||
public void setProductPageViewTracking(String productPageViewTracking) {
|
||||
this.productPageViewTracking = productPageViewTracking;
|
||||
}
|
||||
|
||||
public String getParentGroupId() {
|
||||
return parentGroupId;
|
||||
}
|
||||
|
||||
public void setParentGroupId(String parentGroupId) {
|
||||
this.parentGroupId = parentGroupId;
|
||||
}
|
||||
|
||||
public String getFineline() {
|
||||
return fineline;
|
||||
}
|
||||
|
||||
public void setFineline(String fineline) {
|
||||
this.fineline = fineline;
|
||||
}
|
||||
|
||||
public String getSuperfineline() {
|
||||
return superfineline;
|
||||
}
|
||||
|
||||
public void setSuperfineline(String superfineline) {
|
||||
this.superfineline = superfineline;
|
||||
}
|
||||
|
||||
public String getModelnumber() {
|
||||
return modelnumber;
|
||||
}
|
||||
|
||||
public void setModelnumber(String modelnumber) {
|
||||
this.modelnumber = modelnumber;
|
||||
}
|
||||
|
||||
public String getCaliber() {
|
||||
return caliber;
|
||||
}
|
||||
|
||||
public void setCaliber(String caliber) {
|
||||
this.caliber = caliber;
|
||||
}
|
||||
|
||||
public String getUpc() {
|
||||
return upc;
|
||||
}
|
||||
|
||||
public void setUpc(String upc) {
|
||||
this.upc = upc;
|
||||
}
|
||||
|
||||
public String getMediumImageUrl() {
|
||||
return mediumImageUrl;
|
||||
}
|
||||
|
||||
public void setMediumImageUrl(String mediumImageUrl) {
|
||||
this.mediumImageUrl = mediumImageUrl;
|
||||
}
|
||||
|
||||
public String getProductContentWidget() {
|
||||
return productContentWidget;
|
||||
}
|
||||
|
||||
public void setProductContentWidget(String productContentWidget) {
|
||||
this.productContentWidget = productContentWidget;
|
||||
}
|
||||
|
||||
public String getGoogleCategorization() {
|
||||
return googleCategorization;
|
||||
}
|
||||
|
||||
public void setGoogleCategorization(String googleCategorization) {
|
||||
this.googleCategorization = googleCategorization;
|
||||
}
|
||||
|
||||
public String getItemBasedCommission() {
|
||||
return itemBasedCommission;
|
||||
}
|
||||
|
||||
public void setItemBasedCommission(String itemBasedCommission) {
|
||||
this.itemBasedCommission = itemBasedCommission;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,23 +1,23 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "psa_old")
|
||||
public class PsaOld {
|
||||
@Id
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "psa_old")
|
||||
public class PsaOld {
|
||||
@Id
|
||||
@Column(name = "\"SKU\"", length = 50)
|
||||
private String sku;
|
||||
|
||||
public String getSku() {
|
||||
return sku;
|
||||
}
|
||||
|
||||
public void setSku(String sku) {
|
||||
this.sku = sku;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,73 +1,73 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "sessions")
|
||||
public class Session {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "created_at")
|
||||
private Instant createdAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "sessions")
|
||||
public class Session {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private String id;
|
||||
|
||||
@Column(name = "user_id", nullable = false, length = 21)
|
||||
private String userId;
|
||||
|
||||
@Column(name = "expires_at", nullable = false)
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "created_at")
|
||||
private Instant createdAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public OffsetDateTime getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(OffsetDateTime expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,45 +1,45 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "states")
|
||||
public class State {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "state", length = 50)
|
||||
private String state;
|
||||
|
||||
@Column(name = "abbreviation", length = 50)
|
||||
private String abbreviation;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getAbbreviation() {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public void setAbbreviation(String abbreviation) {
|
||||
this.abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "states")
|
||||
public class State {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "state", length = 50)
|
||||
private String state;
|
||||
|
||||
@Column(name = "abbreviation", length = 50)
|
||||
private String abbreviation;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getAbbreviation() {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public void setAbbreviation(String abbreviation) {
|
||||
this.abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,298 +1,298 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
public class User {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 21)
|
||||
private String id;
|
||||
|
||||
@Column(name = "name", length = Integer.MAX_VALUE)
|
||||
private String name;
|
||||
|
||||
@Column(name = "username", length = 50)
|
||||
private String username;
|
||||
|
||||
@Column(name = "email", nullable = false)
|
||||
private String email;
|
||||
|
||||
@Column(name = "first_name", length = 50)
|
||||
private String firstName;
|
||||
|
||||
@Column(name = "last_name", length = 50)
|
||||
private String lastName;
|
||||
|
||||
@Column(name = "full_name", length = 50)
|
||||
private String fullName;
|
||||
|
||||
@Column(name = "profile_picture")
|
||||
private String profilePicture;
|
||||
|
||||
@Column(name = "image", length = Integer.MAX_VALUE)
|
||||
private String image;
|
||||
|
||||
@Column(name = "date_of_birth")
|
||||
private LocalDate dateOfBirth;
|
||||
|
||||
@Column(name = "phone_number", length = 20)
|
||||
private String phoneNumber;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "created_at")
|
||||
private Instant createdAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("false")
|
||||
@Column(name = "is_admin")
|
||||
private Boolean isAdmin;
|
||||
|
||||
@Column(name = "last_login")
|
||||
private Instant lastLogin;
|
||||
|
||||
@ColumnDefault("false")
|
||||
@Column(name = "email_verified", nullable = false)
|
||||
private Boolean emailVerified = false;
|
||||
|
||||
@ColumnDefault("'public'")
|
||||
@Column(name = "build_privacy_setting", length = Integer.MAX_VALUE)
|
||||
private String buildPrivacySetting;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@Column(name = "discord_id")
|
||||
private String discordId;
|
||||
|
||||
@Column(name = "hashed_password")
|
||||
private String hashedPassword;
|
||||
|
||||
@Column(name = "avatar")
|
||||
private String avatar;
|
||||
|
||||
@Column(name = "stripe_subscription_id", length = 191)
|
||||
private String stripeSubscriptionId;
|
||||
|
||||
@Column(name = "stripe_price_id", length = 191)
|
||||
private String stripePriceId;
|
||||
|
||||
@Column(name = "stripe_customer_id", length = 191)
|
||||
private String stripeCustomerId;
|
||||
|
||||
@Column(name = "stripe_current_period_end")
|
||||
private Instant stripeCurrentPeriodEnd;
|
||||
|
||||
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 getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return fullName;
|
||||
}
|
||||
|
||||
public void setFullName(String fullName) {
|
||||
this.fullName = fullName;
|
||||
}
|
||||
|
||||
public String getProfilePicture() {
|
||||
return profilePicture;
|
||||
}
|
||||
|
||||
public void setProfilePicture(String profilePicture) {
|
||||
this.profilePicture = profilePicture;
|
||||
}
|
||||
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public LocalDate getDateOfBirth() {
|
||||
return dateOfBirth;
|
||||
}
|
||||
|
||||
public void setDateOfBirth(LocalDate dateOfBirth) {
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Boolean getIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(Boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public Instant getLastLogin() {
|
||||
return lastLogin;
|
||||
}
|
||||
|
||||
public void setLastLogin(Instant lastLogin) {
|
||||
this.lastLogin = lastLogin;
|
||||
}
|
||||
|
||||
public Boolean getEmailVerified() {
|
||||
return emailVerified;
|
||||
}
|
||||
|
||||
public void setEmailVerified(Boolean emailVerified) {
|
||||
this.emailVerified = emailVerified;
|
||||
}
|
||||
|
||||
public String getBuildPrivacySetting() {
|
||||
return buildPrivacySetting;
|
||||
}
|
||||
|
||||
public void setBuildPrivacySetting(String buildPrivacySetting) {
|
||||
this.buildPrivacySetting = buildPrivacySetting;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public String getDiscordId() {
|
||||
return discordId;
|
||||
}
|
||||
|
||||
public void setDiscordId(String discordId) {
|
||||
this.discordId = discordId;
|
||||
}
|
||||
|
||||
public String getHashedPassword() {
|
||||
return hashedPassword;
|
||||
}
|
||||
|
||||
public void setHashedPassword(String hashedPassword) {
|
||||
this.hashedPassword = hashedPassword;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getStripeSubscriptionId() {
|
||||
return stripeSubscriptionId;
|
||||
}
|
||||
|
||||
public void setStripeSubscriptionId(String stripeSubscriptionId) {
|
||||
this.stripeSubscriptionId = stripeSubscriptionId;
|
||||
}
|
||||
|
||||
public String getStripePriceId() {
|
||||
return stripePriceId;
|
||||
}
|
||||
|
||||
public void setStripePriceId(String stripePriceId) {
|
||||
this.stripePriceId = stripePriceId;
|
||||
}
|
||||
|
||||
public String getStripeCustomerId() {
|
||||
return stripeCustomerId;
|
||||
}
|
||||
|
||||
public void setStripeCustomerId(String stripeCustomerId) {
|
||||
this.stripeCustomerId = stripeCustomerId;
|
||||
}
|
||||
|
||||
public Instant getStripeCurrentPeriodEnd() {
|
||||
return stripeCurrentPeriodEnd;
|
||||
}
|
||||
|
||||
public void setStripeCurrentPeriodEnd(Instant stripeCurrentPeriodEnd) {
|
||||
this.stripeCurrentPeriodEnd = stripeCurrentPeriodEnd;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
public class User {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 21)
|
||||
private String id;
|
||||
|
||||
@Column(name = "name", length = Integer.MAX_VALUE)
|
||||
private String name;
|
||||
|
||||
@Column(name = "username", length = 50)
|
||||
private String username;
|
||||
|
||||
@Column(name = "email", nullable = false)
|
||||
private String email;
|
||||
|
||||
@Column(name = "first_name", length = 50)
|
||||
private String firstName;
|
||||
|
||||
@Column(name = "last_name", length = 50)
|
||||
private String lastName;
|
||||
|
||||
@Column(name = "full_name", length = 50)
|
||||
private String fullName;
|
||||
|
||||
@Column(name = "profile_picture")
|
||||
private String profilePicture;
|
||||
|
||||
@Column(name = "image", length = Integer.MAX_VALUE)
|
||||
private String image;
|
||||
|
||||
@Column(name = "date_of_birth")
|
||||
private LocalDate dateOfBirth;
|
||||
|
||||
@Column(name = "phone_number", length = 20)
|
||||
private String phoneNumber;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "created_at")
|
||||
private Instant createdAt;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "updated_at")
|
||||
private Instant updatedAt;
|
||||
|
||||
@ColumnDefault("false")
|
||||
@Column(name = "is_admin")
|
||||
private Boolean isAdmin;
|
||||
|
||||
@Column(name = "last_login")
|
||||
private Instant lastLogin;
|
||||
|
||||
@ColumnDefault("false")
|
||||
@Column(name = "email_verified", nullable = false)
|
||||
private Boolean emailVerified = false;
|
||||
|
||||
@ColumnDefault("'public'")
|
||||
@Column(name = "build_privacy_setting", length = Integer.MAX_VALUE)
|
||||
private String buildPrivacySetting;
|
||||
|
||||
@ColumnDefault("gen_random_uuid()")
|
||||
@Column(name = "uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@Column(name = "discord_id")
|
||||
private String discordId;
|
||||
|
||||
@Column(name = "hashed_password")
|
||||
private String hashedPassword;
|
||||
|
||||
@Column(name = "avatar")
|
||||
private String avatar;
|
||||
|
||||
@Column(name = "stripe_subscription_id", length = 191)
|
||||
private String stripeSubscriptionId;
|
||||
|
||||
@Column(name = "stripe_price_id", length = 191)
|
||||
private String stripePriceId;
|
||||
|
||||
@Column(name = "stripe_customer_id", length = 191)
|
||||
private String stripeCustomerId;
|
||||
|
||||
@Column(name = "stripe_current_period_end")
|
||||
private Instant stripeCurrentPeriodEnd;
|
||||
|
||||
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 getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return fullName;
|
||||
}
|
||||
|
||||
public void setFullName(String fullName) {
|
||||
this.fullName = fullName;
|
||||
}
|
||||
|
||||
public String getProfilePicture() {
|
||||
return profilePicture;
|
||||
}
|
||||
|
||||
public void setProfilePicture(String profilePicture) {
|
||||
this.profilePicture = profilePicture;
|
||||
}
|
||||
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public LocalDate getDateOfBirth() {
|
||||
return dateOfBirth;
|
||||
}
|
||||
|
||||
public void setDateOfBirth(LocalDate dateOfBirth) {
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Boolean getIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(Boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public Instant getLastLogin() {
|
||||
return lastLogin;
|
||||
}
|
||||
|
||||
public void setLastLogin(Instant lastLogin) {
|
||||
this.lastLogin = lastLogin;
|
||||
}
|
||||
|
||||
public Boolean getEmailVerified() {
|
||||
return emailVerified;
|
||||
}
|
||||
|
||||
public void setEmailVerified(Boolean emailVerified) {
|
||||
this.emailVerified = emailVerified;
|
||||
}
|
||||
|
||||
public String getBuildPrivacySetting() {
|
||||
return buildPrivacySetting;
|
||||
}
|
||||
|
||||
public void setBuildPrivacySetting(String buildPrivacySetting) {
|
||||
this.buildPrivacySetting = buildPrivacySetting;
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public String getDiscordId() {
|
||||
return discordId;
|
||||
}
|
||||
|
||||
public void setDiscordId(String discordId) {
|
||||
this.discordId = discordId;
|
||||
}
|
||||
|
||||
public String getHashedPassword() {
|
||||
return hashedPassword;
|
||||
}
|
||||
|
||||
public void setHashedPassword(String hashedPassword) {
|
||||
this.hashedPassword = hashedPassword;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getStripeSubscriptionId() {
|
||||
return stripeSubscriptionId;
|
||||
}
|
||||
|
||||
public void setStripeSubscriptionId(String stripeSubscriptionId) {
|
||||
this.stripeSubscriptionId = stripeSubscriptionId;
|
||||
}
|
||||
|
||||
public String getStripePriceId() {
|
||||
return stripePriceId;
|
||||
}
|
||||
|
||||
public void setStripePriceId(String stripePriceId) {
|
||||
this.stripePriceId = stripePriceId;
|
||||
}
|
||||
|
||||
public String getStripeCustomerId() {
|
||||
return stripeCustomerId;
|
||||
}
|
||||
|
||||
public void setStripeCustomerId(String stripeCustomerId) {
|
||||
this.stripeCustomerId = stripeCustomerId;
|
||||
}
|
||||
|
||||
public Instant getStripeCurrentPeriodEnd() {
|
||||
return stripeCurrentPeriodEnd;
|
||||
}
|
||||
|
||||
public void setStripeCurrentPeriodEnd(Instant stripeCurrentPeriodEnd) {
|
||||
this.stripeCurrentPeriodEnd = stripeCurrentPeriodEnd;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,60 +1,60 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "user_activity_log")
|
||||
public class UserActivityLog {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "activity", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String activity;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "\"timestamp\"")
|
||||
private Instant timestamp;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getActivity() {
|
||||
return activity;
|
||||
}
|
||||
|
||||
public void setActivity(String activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
public Instant getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Instant timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "user_activity_log")
|
||||
public class UserActivityLog {
|
||||
@Id
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "user_id", nullable = false)
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "activity", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String activity;
|
||||
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "\"timestamp\"")
|
||||
private Instant timestamp;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getActivity() {
|
||||
return activity;
|
||||
}
|
||||
|
||||
public void setActivity(String activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
public Instant getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(Instant timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,47 +1,47 @@
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "\"verificationTokens\"")
|
||||
public class VerificationToken {
|
||||
@Id
|
||||
@Column(name = "identifier", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String identifier;
|
||||
|
||||
@Column(name = "token", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String token;
|
||||
|
||||
@Column(name = "expires", nullable = false)
|
||||
private Instant expires;
|
||||
|
||||
public String getIdentifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
public void setIdentifier(String identifier) {
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
public String getToken() {
|
||||
return token;
|
||||
}
|
||||
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public Instant getExpires() {
|
||||
return expires;
|
||||
}
|
||||
|
||||
public void setExpires(Instant expires) {
|
||||
this.expires = expires;
|
||||
}
|
||||
|
||||
package group.goforward.ballistic.jpa;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Entity
|
||||
@Table(name = "\"verificationTokens\"")
|
||||
public class VerificationToken {
|
||||
@Id
|
||||
@Column(name = "identifier", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String identifier;
|
||||
|
||||
@Column(name = "token", nullable = false, length = Integer.MAX_VALUE)
|
||||
private String token;
|
||||
|
||||
@Column(name = "expires", nullable = false)
|
||||
private Instant expires;
|
||||
|
||||
public String getIdentifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
public void setIdentifier(String identifier) {
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
public String getToken() {
|
||||
return token;
|
||||
}
|
||||
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public Instant getExpires() {
|
||||
return expires;
|
||||
}
|
||||
|
||||
public void setExpires(Instant expires) {
|
||||
this.expires = expires;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package group.goforward.ballistic.repos;
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface PsaRepository extends JpaRepository<Psa, UUID> {
|
||||
package group.goforward.ballistic.repos;
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface PsaRepository extends JpaRepository<Psa, UUID> {
|
||||
}
|
||||
@@ -1,36 +1,36 @@
|
||||
package group.goforward.ballistic.service;
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import group.goforward.ballistic.repos.PsaRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class PsaService {
|
||||
|
||||
private final PsaRepository psaRepository;
|
||||
|
||||
@Autowired
|
||||
public PsaService(PsaRepository psaRepository) {
|
||||
this.psaRepository = psaRepository;
|
||||
}
|
||||
|
||||
public List<Psa> findAll() {
|
||||
return psaRepository.findAll();
|
||||
}
|
||||
|
||||
public Optional<Psa> findById(UUID id) {
|
||||
return psaRepository.findById(id);
|
||||
}
|
||||
|
||||
public Psa save(Psa psa) {
|
||||
return psaRepository.save(psa);
|
||||
}
|
||||
|
||||
public void deleteById(UUID id) {
|
||||
psaRepository.deleteById(id);
|
||||
}
|
||||
}
|
||||
package group.goforward.ballistic.service;
|
||||
import group.goforward.ballistic.jpa.Psa;
|
||||
import group.goforward.ballistic.repos.PsaRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class PsaService {
|
||||
|
||||
private final PsaRepository psaRepository;
|
||||
|
||||
@Autowired
|
||||
public PsaService(PsaRepository psaRepository) {
|
||||
this.psaRepository = psaRepository;
|
||||
}
|
||||
|
||||
public List<Psa> findAll() {
|
||||
return psaRepository.findAll();
|
||||
}
|
||||
|
||||
public Optional<Psa> findById(UUID id) {
|
||||
return psaRepository.findById(id);
|
||||
}
|
||||
|
||||
public Psa save(Psa psa) {
|
||||
return psaRepository.save(psa);
|
||||
}
|
||||
|
||||
public void deleteById(UUID id) {
|
||||
psaRepository.deleteById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
spring.application.name=ballistic
|
||||
# Database connection properties
|
||||
spring.datasource.url=jdbc:postgresql://r710.gofwd.group:5433/ballistic
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=cul8rman
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
|
||||
# Hibernate properties
|
||||
#spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.show-sql=true
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||
spring.application.name=ballistic
|
||||
# Database connection properties
|
||||
spring.datasource.url=jdbc:postgresql://r710.gofwd.group:5433/ballistic
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=cul8rman
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
|
||||
# Hibernate properties
|
||||
#spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.show-sql=true
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||
|
||||
Reference in New Issue
Block a user