This commit is contained in:
2025-06-29 08:45:29 -04:00
parent 29f0b737b5
commit 8f9e15f1e7
38 changed files with 4271 additions and 4271 deletions

4
.gitattributes vendored
View File

@@ -1,2 +1,2 @@
/mvnw text eol=lf /mvnw text eol=lf
*.cmd text eol=crlf *.cmd text eol=crlf

66
.gitignore vendored
View File

@@ -1,33 +1,33 @@
HELP.md HELP.md
target/ target/
!.mvn/wrapper/maven-wrapper.jar !.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/ !**/src/main/**/target/
!**/src/test/**/target/ !**/src/test/**/target/
### STS ### ### STS ###
.apt_generated .apt_generated
.classpath .classpath
.factorypath .factorypath
.project .project
.settings .settings
.springBeans .springBeans
.sts4-cache .sts4-cache
### IntelliJ IDEA ### ### IntelliJ IDEA ###
.idea .idea
*.iws *.iws
*.iml *.iml
*.ipr *.ipr
### NetBeans ### ### NetBeans ###
/nbproject/private/ /nbproject/private/
/nbbuild/ /nbbuild/
/dist/ /dist/
/nbdist/ /nbdist/
/.nb-gradle/ /.nb-gradle/
build/ build/
!**/src/main/**/build/ !**/src/main/**/build/
!**/src/test/**/build/ !**/src/test/**/build/
### VS Code ### ### VS Code ###
.vscode/ .vscode/

View File

@@ -1,19 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file # or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information # distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file # regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the # to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance # "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at # with the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an # software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the # KIND, either express or implied. See the License for the
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
wrapperVersion=3.3.2 wrapperVersion=3.3.2
distributionType=only-script distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

View File

@@ -1,9 +1,9 @@
services: services:
postgres: postgres:
image: 'postgres:latest' image: 'postgres:latest'
environment: environment:
- 'POSTGRES_DB=mydatabase' - 'POSTGRES_DB=mydatabase'
- 'POSTGRES_PASSWORD=secret' - 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_USER=myuser' - 'POSTGRES_USER=myuser'
ports: ports:
- '5432' - '5432'

158
pom.xml
View File

@@ -1,79 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.3</version> <version>3.4.3</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>group.goforward</groupId> <groupId>group.goforward</groupId>
<artifactId>ballistic</artifactId> <artifactId>ballistic</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>ballistic</name> <name>ballistic</name>
<description>Ballistic Builder</description> <description>Ballistic Builder</description>
<url/> <url/>
<licenses> <licenses>
<license/> <license/>
</licenses> </licenses>
<developers> <developers>
<developer/> <developer/>
</developers> </developers>
<scm> <scm>
<connection/> <connection/>
<developerConnection/> <developerConnection/>
<tag/> <tag/>
<url/> <url/>
</scm> </scm>
<properties> <properties>
<java.version>17</java.version> <java.version>17</java.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId> <artifactId>spring-boot-starter-data-rest</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!--<dependency> <!--<dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-docker-compose</artifactId> <artifactId>spring-boot-docker-compose</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
<optional>true</optional> <optional>true</optional>
</dependency>--> </dependency>-->
<dependency> <dependency>
<groupId>org.postgresql</groupId> <groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@@ -1,13 +1,13 @@
package group.goforward.ballistic; package group.goforward.ballistic;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class BallisticApplication { public class BallisticApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(BallisticApplication.class, args); SpringApplication.run(BallisticApplication.class, args);
} }
} }

View File

@@ -1,57 +1,57 @@
package group.goforward.ballistic.controllers; package group.goforward.ballistic.controllers;
import group.goforward.ballistic.jpa.Psa; import group.goforward.ballistic.jpa.Psa;
import group.goforward.ballistic.service.PsaService; import group.goforward.ballistic.service.PsaService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.UUID; import java.util.UUID;
@RestController @RestController
@RequestMapping("/psa") @RequestMapping("/psa")
public class PsaController { public class PsaController {
private final PsaService psaService; private final PsaService psaService;
@Autowired @Autowired
public PsaController(PsaService psaService) { public PsaController(PsaService psaService) {
this.psaService = psaService; this.psaService = psaService;
} }
@GetMapping("/all") @GetMapping("/all")
public List<Psa> getAllPsa() { public List<Psa> getAllPsa() {
return psaService.findAll(); return psaService.findAll();
} }
@GetMapping("/{id}") @GetMapping("/{id}")
public ResponseEntity<Psa> getPsaById(@PathVariable UUID id) { public ResponseEntity<Psa> getPsaById(@PathVariable UUID id) {
Optional<Psa> psa = psaService.findById(id); Optional<Psa> psa = psaService.findById(id);
return psa.map(ResponseEntity::ok).orElseGet(() -> ResponseEntity.notFound().build()); return psa.map(ResponseEntity::ok).orElseGet(() -> ResponseEntity.notFound().build());
} }
@PostMapping @PostMapping
public Psa createPsa(@RequestBody Psa psa) { public Psa createPsa(@RequestBody Psa psa) {
return psaService.save(psa); return psaService.save(psa);
} }
@PutMapping("/{id}") @PutMapping("/{id}")
public ResponseEntity<Psa> updatePsa(@PathVariable UUID id, @RequestBody Psa psaDetails) { public ResponseEntity<Psa> updatePsa(@PathVariable UUID id, @RequestBody Psa psaDetails) {
Optional<Psa> psa = psaService.findById(id); Optional<Psa> psa = psaService.findById(id);
if (psa.isPresent()) { if (psa.isPresent()) {
Psa updatedPsa = psa.get(); Psa updatedPsa = psa.get();
// Update fields of the Psa entity as needed // Update fields of the Psa entity as needed
return ResponseEntity.ok(psaService.save(updatedPsa)); return ResponseEntity.ok(psaService.save(updatedPsa));
} else { } else {
return ResponseEntity.notFound().build(); return ResponseEntity.notFound().build();
} }
} }
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<Void> deletePsa(@PathVariable UUID id) { public ResponseEntity<Void> deletePsa(@PathVariable UUID id) {
psaService.deleteById(id); psaService.deleteById(id);
return ResponseEntity.noContent().build(); return ResponseEntity.noContent().build();
} }
} }

View File

@@ -1,160 +1,160 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "accounts") @Table(name = "accounts")
public class Account { public class Account {
@Id @Id
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private UUID id; private UUID id;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
@Column(name = "user_id", nullable = false) @Column(name = "user_id", nullable = false)
private UUID userId; private UUID userId;
@Column(name = "type", nullable = false, length = Integer.MAX_VALUE) @Column(name = "type", nullable = false, length = Integer.MAX_VALUE)
private String type; private String type;
@Column(name = "provider", nullable = false, length = Integer.MAX_VALUE) @Column(name = "provider", nullable = false, length = Integer.MAX_VALUE)
private String provider; private String provider;
@Column(name = "provider_account_id", nullable = false, length = Integer.MAX_VALUE) @Column(name = "provider_account_id", nullable = false, length = Integer.MAX_VALUE)
private String providerAccountId; private String providerAccountId;
@Column(name = "refresh_token", length = Integer.MAX_VALUE) @Column(name = "refresh_token", length = Integer.MAX_VALUE)
private String refreshToken; private String refreshToken;
@Column(name = "access_token", length = Integer.MAX_VALUE) @Column(name = "access_token", length = Integer.MAX_VALUE)
private String accessToken; private String accessToken;
@Column(name = "expires_at") @Column(name = "expires_at")
private Integer expiresAt; private Integer expiresAt;
@Column(name = "token_type", length = Integer.MAX_VALUE) @Column(name = "token_type", length = Integer.MAX_VALUE)
private String tokenType; private String tokenType;
@Column(name = "id_token", length = Integer.MAX_VALUE) @Column(name = "id_token", length = Integer.MAX_VALUE)
private String idToken; private String idToken;
@Column(name = "session_state", length = Integer.MAX_VALUE) @Column(name = "session_state", length = Integer.MAX_VALUE)
private String sessionState; private String sessionState;
@Column(name = "scope", length = Integer.MAX_VALUE) @Column(name = "scope", length = Integer.MAX_VALUE)
private String scope; private String scope;
public UUID getId() { public UUID getId() {
return id; return id;
} }
public void setId(UUID id) { public void setId(UUID id) {
this.id = id; this.id = id;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public UUID getUserId() { public UUID getUserId() {
return userId; return userId;
} }
public void setUserId(UUID userId) { public void setUserId(UUID userId) {
this.userId = userId; this.userId = userId;
} }
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
public String getProvider() { public String getProvider() {
return provider; return provider;
} }
public void setProvider(String provider) { public void setProvider(String provider) {
this.provider = provider; this.provider = provider;
} }
public String getProviderAccountId() { public String getProviderAccountId() {
return providerAccountId; return providerAccountId;
} }
public void setProviderAccountId(String providerAccountId) { public void setProviderAccountId(String providerAccountId) {
this.providerAccountId = providerAccountId; this.providerAccountId = providerAccountId;
} }
public String getRefreshToken() { public String getRefreshToken() {
return refreshToken; return refreshToken;
} }
public void setRefreshToken(String refreshToken) { public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken; this.refreshToken = refreshToken;
} }
public String getAccessToken() { public String getAccessToken() {
return accessToken; return accessToken;
} }
public void setAccessToken(String accessToken) { public void setAccessToken(String accessToken) {
this.accessToken = accessToken; this.accessToken = accessToken;
} }
public Integer getExpiresAt() { public Integer getExpiresAt() {
return expiresAt; return expiresAt;
} }
public void setExpiresAt(Integer expiresAt) { public void setExpiresAt(Integer expiresAt) {
this.expiresAt = expiresAt; this.expiresAt = expiresAt;
} }
public String getTokenType() { public String getTokenType() {
return tokenType; return tokenType;
} }
public void setTokenType(String tokenType) { public void setTokenType(String tokenType) {
this.tokenType = tokenType; this.tokenType = tokenType;
} }
public String getIdToken() { public String getIdToken() {
return idToken; return idToken;
} }
public void setIdToken(String idToken) { public void setIdToken(String idToken) {
this.idToken = idToken; this.idToken = idToken;
} }
public String getSessionState() { public String getSessionState() {
return sessionState; return sessionState;
} }
public void setSessionState(String sessionState) { public void setSessionState(String sessionState) {
this.sessionState = sessionState; this.sessionState = sessionState;
} }
public String getScope() { public String getScope() {
return scope; return scope;
} }
public void setScope(String scope) { public void setScope(String scope) {
this.scope = scope; this.scope = scope;
} }
} }

View File

@@ -1,8 +1,8 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import java.util.UUID; import java.util.UUID;
public interface AccountRepository extends JpaRepository<Account, UUID> { public interface AccountRepository extends JpaRepository<Account, UUID> {
} }

View File

@@ -1,293 +1,293 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "aero_precision") @Table(name = "aero_precision")
public class public class
AeroPrecision { AeroPrecision {
@Id @Id
@Column(name = "sku", nullable = false, length = Integer.MAX_VALUE) @Column(name = "sku", nullable = false, length = Integer.MAX_VALUE)
private String sku; private String sku;
@Column(name = "manufacturer_id", length = Integer.MAX_VALUE) @Column(name = "manufacturer_id", length = Integer.MAX_VALUE)
private String manufacturerId; private String manufacturerId;
@Column(name = "brand_name", length = Integer.MAX_VALUE) @Column(name = "brand_name", length = Integer.MAX_VALUE)
private String brandName; private String brandName;
@Column(name = "product_name", length = Integer.MAX_VALUE) @Column(name = "product_name", length = Integer.MAX_VALUE)
private String productName; private String productName;
@Column(name = "long_description", length = Integer.MAX_VALUE) @Column(name = "long_description", length = Integer.MAX_VALUE)
private String longDescription; private String longDescription;
@Column(name = "short_description", length = Integer.MAX_VALUE) @Column(name = "short_description", length = Integer.MAX_VALUE)
private String shortDescription; private String shortDescription;
@Column(name = "department", length = Integer.MAX_VALUE) @Column(name = "department", length = Integer.MAX_VALUE)
private String department; private String department;
@Column(name = "category", length = Integer.MAX_VALUE) @Column(name = "category", length = Integer.MAX_VALUE)
private String category; private String category;
@Column(name = "subcategory", length = Integer.MAX_VALUE) @Column(name = "subcategory", length = Integer.MAX_VALUE)
private String subcategory; private String subcategory;
@Column(name = "thumb_url", length = Integer.MAX_VALUE) @Column(name = "thumb_url", length = Integer.MAX_VALUE)
private String thumbUrl; private String thumbUrl;
@Column(name = "image_url", length = Integer.MAX_VALUE) @Column(name = "image_url", length = Integer.MAX_VALUE)
private String imageUrl; private String imageUrl;
@Column(name = "buy_link", length = Integer.MAX_VALUE) @Column(name = "buy_link", length = Integer.MAX_VALUE)
private String buyLink; private String buyLink;
@Column(name = "keywords", length = Integer.MAX_VALUE) @Column(name = "keywords", length = Integer.MAX_VALUE)
private String keywords; private String keywords;
@Column(name = "reviews", length = Integer.MAX_VALUE) @Column(name = "reviews", length = Integer.MAX_VALUE)
private String reviews; private String reviews;
@Column(name = "retail_price") @Column(name = "retail_price")
private BigDecimal retailPrice; private BigDecimal retailPrice;
@Column(name = "sale_price") @Column(name = "sale_price")
private BigDecimal salePrice; private BigDecimal salePrice;
@Column(name = "brand_page_link", length = Integer.MAX_VALUE) @Column(name = "brand_page_link", length = Integer.MAX_VALUE)
private String brandPageLink; private String brandPageLink;
@Column(name = "brand_logo_image", length = Integer.MAX_VALUE) @Column(name = "brand_logo_image", length = Integer.MAX_VALUE)
private String brandLogoImage; private String brandLogoImage;
@Column(name = "product_page_view_tracking", length = Integer.MAX_VALUE) @Column(name = "product_page_view_tracking", length = Integer.MAX_VALUE)
private String productPageViewTracking; private String productPageViewTracking;
@Column(name = "variants_xml", length = Integer.MAX_VALUE) @Column(name = "variants_xml", length = Integer.MAX_VALUE)
private String variantsXml; private String variantsXml;
@Column(name = "medium_image_url", length = Integer.MAX_VALUE) @Column(name = "medium_image_url", length = Integer.MAX_VALUE)
private String mediumImageUrl; private String mediumImageUrl;
@Column(name = "product_content_widget", length = Integer.MAX_VALUE) @Column(name = "product_content_widget", length = Integer.MAX_VALUE)
private String productContentWidget; private String productContentWidget;
@Column(name = "google_categorization", length = Integer.MAX_VALUE) @Column(name = "google_categorization", length = Integer.MAX_VALUE)
private String googleCategorization; private String googleCategorization;
@Column(name = "item_based_commission", length = Integer.MAX_VALUE) @Column(name = "item_based_commission", length = Integer.MAX_VALUE)
private String itemBasedCommission; private String itemBasedCommission;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public String getSku() { public String getSku() {
return sku; return sku;
} }
public void setSku(String sku) { public void setSku(String sku) {
this.sku = sku; this.sku = sku;
} }
public String getManufacturerId() { public String getManufacturerId() {
return manufacturerId; return manufacturerId;
} }
public void setManufacturerId(String manufacturerId) { public void setManufacturerId(String manufacturerId) {
this.manufacturerId = manufacturerId; this.manufacturerId = manufacturerId;
} }
public String getBrandName() { public String getBrandName() {
return brandName; return brandName;
} }
public void setBrandName(String brandName) { public void setBrandName(String brandName) {
this.brandName = brandName; this.brandName = brandName;
} }
public String getProductName() { public String getProductName() {
return productName; return productName;
} }
public void setProductName(String productName) { public void setProductName(String productName) {
this.productName = productName; this.productName = productName;
} }
public String getLongDescription() { public String getLongDescription() {
return longDescription; return longDescription;
} }
public void setLongDescription(String longDescription) { public void setLongDescription(String longDescription) {
this.longDescription = longDescription; this.longDescription = longDescription;
} }
public String getShortDescription() { public String getShortDescription() {
return shortDescription; return shortDescription;
} }
public void setShortDescription(String shortDescription) { public void setShortDescription(String shortDescription) {
this.shortDescription = shortDescription; this.shortDescription = shortDescription;
} }
public String getDepartment() { public String getDepartment() {
return department; return department;
} }
public void setDepartment(String department) { public void setDepartment(String department) {
this.department = department; this.department = department;
} }
public String getCategory() { public String getCategory() {
return category; return category;
} }
public void setCategory(String category) { public void setCategory(String category) {
this.category = category; this.category = category;
} }
public String getSubcategory() { public String getSubcategory() {
return subcategory; return subcategory;
} }
public void setSubcategory(String subcategory) { public void setSubcategory(String subcategory) {
this.subcategory = subcategory; this.subcategory = subcategory;
} }
public String getThumbUrl() { public String getThumbUrl() {
return thumbUrl; return thumbUrl;
} }
public void setThumbUrl(String thumbUrl) { public void setThumbUrl(String thumbUrl) {
this.thumbUrl = thumbUrl; this.thumbUrl = thumbUrl;
} }
public String getImageUrl() { public String getImageUrl() {
return imageUrl; return imageUrl;
} }
public void setImageUrl(String imageUrl) { public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl; this.imageUrl = imageUrl;
} }
public String getBuyLink() { public String getBuyLink() {
return buyLink; return buyLink;
} }
public void setBuyLink(String buyLink) { public void setBuyLink(String buyLink) {
this.buyLink = buyLink; this.buyLink = buyLink;
} }
public String getKeywords() { public String getKeywords() {
return keywords; return keywords;
} }
public void setKeywords(String keywords) { public void setKeywords(String keywords) {
this.keywords = keywords; this.keywords = keywords;
} }
public String getReviews() { public String getReviews() {
return reviews; return reviews;
} }
public void setReviews(String reviews) { public void setReviews(String reviews) {
this.reviews = reviews; this.reviews = reviews;
} }
public BigDecimal getRetailPrice() { public BigDecimal getRetailPrice() {
return retailPrice; return retailPrice;
} }
public void setRetailPrice(BigDecimal retailPrice) { public void setRetailPrice(BigDecimal retailPrice) {
this.retailPrice = retailPrice; this.retailPrice = retailPrice;
} }
public BigDecimal getSalePrice() { public BigDecimal getSalePrice() {
return salePrice; return salePrice;
} }
public void setSalePrice(BigDecimal salePrice) { public void setSalePrice(BigDecimal salePrice) {
this.salePrice = salePrice; this.salePrice = salePrice;
} }
public String getBrandPageLink() { public String getBrandPageLink() {
return brandPageLink; return brandPageLink;
} }
public void setBrandPageLink(String brandPageLink) { public void setBrandPageLink(String brandPageLink) {
this.brandPageLink = brandPageLink; this.brandPageLink = brandPageLink;
} }
public String getBrandLogoImage() { public String getBrandLogoImage() {
return brandLogoImage; return brandLogoImage;
} }
public void setBrandLogoImage(String brandLogoImage) { public void setBrandLogoImage(String brandLogoImage) {
this.brandLogoImage = brandLogoImage; this.brandLogoImage = brandLogoImage;
} }
public String getProductPageViewTracking() { public String getProductPageViewTracking() {
return productPageViewTracking; return productPageViewTracking;
} }
public void setProductPageViewTracking(String productPageViewTracking) { public void setProductPageViewTracking(String productPageViewTracking) {
this.productPageViewTracking = productPageViewTracking; this.productPageViewTracking = productPageViewTracking;
} }
public String getVariantsXml() { public String getVariantsXml() {
return variantsXml; return variantsXml;
} }
public void setVariantsXml(String variantsXml) { public void setVariantsXml(String variantsXml) {
this.variantsXml = variantsXml; this.variantsXml = variantsXml;
} }
public String getMediumImageUrl() { public String getMediumImageUrl() {
return mediumImageUrl; return mediumImageUrl;
} }
public void setMediumImageUrl(String mediumImageUrl) { public void setMediumImageUrl(String mediumImageUrl) {
this.mediumImageUrl = mediumImageUrl; this.mediumImageUrl = mediumImageUrl;
} }
public String getProductContentWidget() { public String getProductContentWidget() {
return productContentWidget; return productContentWidget;
} }
public void setProductContentWidget(String productContentWidget) { public void setProductContentWidget(String productContentWidget) {
this.productContentWidget = productContentWidget; this.productContentWidget = productContentWidget;
} }
public String getGoogleCategorization() { public String getGoogleCategorization() {
return googleCategorization; return googleCategorization;
} }
public void setGoogleCategorization(String googleCategorization) { public void setGoogleCategorization(String googleCategorization) {
this.googleCategorization = googleCategorization; this.googleCategorization = googleCategorization;
} }
public String getItemBasedCommission() { public String getItemBasedCommission() {
return itemBasedCommission; return itemBasedCommission;
} }
public void setItemBasedCommission(String itemBasedCommission) { public void setItemBasedCommission(String itemBasedCommission) {
this.itemBasedCommission = itemBasedCommission; this.itemBasedCommission = itemBasedCommission;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,88 +1,88 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.EmbeddedId; import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Table; import jakarta.persistence.Table;
@Entity @Entity
@Table(name = "authenticator") @Table(name = "authenticator")
public class Authenticator { public class Authenticator {
@EmbeddedId @EmbeddedId
private AuthenticatorId id; private AuthenticatorId id;
@Column(name = "\"providerAccountId\"", nullable = false, length = Integer.MAX_VALUE) @Column(name = "\"providerAccountId\"", nullable = false, length = Integer.MAX_VALUE)
private String providerAccountId; private String providerAccountId;
@Column(name = "\"credentialPublicKey\"", nullable = false, length = Integer.MAX_VALUE) @Column(name = "\"credentialPublicKey\"", nullable = false, length = Integer.MAX_VALUE)
private String credentialPublicKey; private String credentialPublicKey;
@Column(name = "counter", nullable = false) @Column(name = "counter", nullable = false)
private Integer counter; private Integer counter;
@Column(name = "\"credentialDeviceType\"", nullable = false, length = Integer.MAX_VALUE) @Column(name = "\"credentialDeviceType\"", nullable = false, length = Integer.MAX_VALUE)
private String credentialDeviceType; private String credentialDeviceType;
@Column(name = "\"credentialBackedUp\"", nullable = false) @Column(name = "\"credentialBackedUp\"", nullable = false)
private Boolean credentialBackedUp = false; private Boolean credentialBackedUp = false;
@Column(name = "transports", length = Integer.MAX_VALUE) @Column(name = "transports", length = Integer.MAX_VALUE)
private String transports; private String transports;
public AuthenticatorId getId() { public AuthenticatorId getId() {
return id; return id;
} }
public void setId(AuthenticatorId id) { public void setId(AuthenticatorId id) {
this.id = id; this.id = id;
} }
public String getProviderAccountId() { public String getProviderAccountId() {
return providerAccountId; return providerAccountId;
} }
public void setProviderAccountId(String providerAccountId) { public void setProviderAccountId(String providerAccountId) {
this.providerAccountId = providerAccountId; this.providerAccountId = providerAccountId;
} }
public String getCredentialPublicKey() { public String getCredentialPublicKey() {
return credentialPublicKey; return credentialPublicKey;
} }
public void setCredentialPublicKey(String credentialPublicKey) { public void setCredentialPublicKey(String credentialPublicKey) {
this.credentialPublicKey = credentialPublicKey; this.credentialPublicKey = credentialPublicKey;
} }
public Integer getCounter() { public Integer getCounter() {
return counter; return counter;
} }
public void setCounter(Integer counter) { public void setCounter(Integer counter) {
this.counter = counter; this.counter = counter;
} }
public String getCredentialDeviceType() { public String getCredentialDeviceType() {
return credentialDeviceType; return credentialDeviceType;
} }
public void setCredentialDeviceType(String credentialDeviceType) { public void setCredentialDeviceType(String credentialDeviceType) {
this.credentialDeviceType = credentialDeviceType; this.credentialDeviceType = credentialDeviceType;
} }
public Boolean getCredentialBackedUp() { public Boolean getCredentialBackedUp() {
return credentialBackedUp; return credentialBackedUp;
} }
public void setCredentialBackedUp(Boolean credentialBackedUp) { public void setCredentialBackedUp(Boolean credentialBackedUp) {
this.credentialBackedUp = credentialBackedUp; this.credentialBackedUp = credentialBackedUp;
} }
public String getTransports() { public String getTransports() {
return transports; return transports;
} }
public void setTransports(String transports) { public void setTransports(String transports) {
this.transports = transports; this.transports = transports;
} }
} }

View File

@@ -1,48 +1,48 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Embeddable; import jakarta.persistence.Embeddable;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import java.util.Objects; import java.util.Objects;
@Embeddable @Embeddable
public class AuthenticatorId implements java.io.Serializable { public class AuthenticatorId implements java.io.Serializable {
private static final long serialVersionUID = -4147080603801184737L; private static final long serialVersionUID = -4147080603801184737L;
@Column(name = "\"credentialId\"", nullable = false, length = Integer.MAX_VALUE) @Column(name = "\"credentialId\"", nullable = false, length = Integer.MAX_VALUE)
private String credentialId; private String credentialId;
@Column(name = "\"userId\"", nullable = false, length = Integer.MAX_VALUE) @Column(name = "\"userId\"", nullable = false, length = Integer.MAX_VALUE)
private String userId; private String userId;
public String getCredentialId() { public String getCredentialId() {
return credentialId; return credentialId;
} }
public void setCredentialId(String credentialId) { public void setCredentialId(String credentialId) {
this.credentialId = credentialId; this.credentialId = credentialId;
} }
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
public void setUserId(String userId) { public void setUserId(String userId) {
this.userId = userId; this.userId = userId;
} }
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) return true; if (this == o) return true;
if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
AuthenticatorId entity = (AuthenticatorId) o; AuthenticatorId entity = (AuthenticatorId) o;
return Objects.equals(this.credentialId, entity.credentialId) && return Objects.equals(this.credentialId, entity.credentialId) &&
Objects.equals(this.userId, entity.userId); Objects.equals(this.userId, entity.userId);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(credentialId, userId); return Objects.hash(credentialId, userId);
} }
} }

View File

@@ -1,107 +1,107 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "bal_resellers") @Table(name = "bal_resellers")
public class BalReseller { public class BalReseller {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@Column(name = "website_url") @Column(name = "website_url")
private String websiteUrl; private String websiteUrl;
@Column(name = "contact_email", length = 100) @Column(name = "contact_email", length = 100)
private String contactEmail; private String contactEmail;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getWebsiteUrl() { public String getWebsiteUrl() {
return websiteUrl; return websiteUrl;
} }
public void setWebsiteUrl(String websiteUrl) { public void setWebsiteUrl(String websiteUrl) {
this.websiteUrl = websiteUrl; this.websiteUrl = websiteUrl;
} }
public String getContactEmail() { public String getContactEmail() {
return contactEmail; return contactEmail;
} }
public void setContactEmail(String contactEmail) { public void setContactEmail(String contactEmail) {
this.contactEmail = contactEmail; this.contactEmail = contactEmail;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,393 +1,393 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "bb_products") @Table(name = "bb_products")
public class BbProduct { public class BbProduct {
@Id @Id
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid", nullable = false) @Column(name = "uuid", nullable = false)
private UUID id; private UUID id;
@Column(name = "\"UPC\"", length = 100) @Column(name = "\"UPC\"", length = 100)
private String upc; private String upc;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@Column(name = "\"SKU\"", length = 50) @Column(name = "\"SKU\"", length = 50)
private String sku; private String sku;
@Column(name = "\"MANUFACTURER_ID\"", length = 50) @Column(name = "\"MANUFACTURER_ID\"", length = 50)
private String manufacturerId; private String manufacturerId;
@Column(name = "\"BRAND_NAME\"", length = 50) @Column(name = "\"BRAND_NAME\"", length = 50)
private String brandName; private String brandName;
@Column(name = "\"PRODUCT_NAME\"") @Column(name = "\"PRODUCT_NAME\"")
private String productName; private String productName;
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE) @Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
private String longDescription; private String longDescription;
@Column(name = "\"SHORT_DESCRIPTION\"", length = 500) @Column(name = "\"SHORT_DESCRIPTION\"", length = 500)
private String shortDescription; private String shortDescription;
@Column(name = "\"DEPARTMENT\"", length = 100) @Column(name = "\"DEPARTMENT\"", length = 100)
private String department; private String department;
@Column(name = "\"CATEGORY\"", length = 100) @Column(name = "\"CATEGORY\"", length = 100)
private String category; private String category;
@Column(name = "\"SUBCATEGORY\"", length = 100) @Column(name = "\"SUBCATEGORY\"", length = 100)
private String subcategory; private String subcategory;
@Column(name = "\"THUMB_URL\"", length = 500) @Column(name = "\"THUMB_URL\"", length = 500)
private String thumbUrl; private String thumbUrl;
@Column(name = "\"IMAGE_URL\"", length = 500) @Column(name = "\"IMAGE_URL\"", length = 500)
private String imageUrl; private String imageUrl;
@Column(name = "\"BUY_LINK\"", length = 500) @Column(name = "\"BUY_LINK\"", length = 500)
private String buyLink; private String buyLink;
@Column(name = "\"KEYWORDS\"", length = 500) @Column(name = "\"KEYWORDS\"", length = 500)
private String keywords; private String keywords;
@Column(name = "\"REVIEWS\"", length = 500) @Column(name = "\"REVIEWS\"", length = 500)
private String reviews; private String reviews;
@Column(name = "\"RETAIL_PRICE\"", length = 50) @Column(name = "\"RETAIL_PRICE\"", length = 50)
private String retailPrice; private String retailPrice;
@Column(name = "\"SALE_PRICE\"", length = 50) @Column(name = "\"SALE_PRICE\"", length = 50)
private String salePrice; private String salePrice;
@Column(name = "\"BRAND_PAGE_LINK\"", length = 500) @Column(name = "\"BRAND_PAGE_LINK\"", length = 500)
private String brandPageLink; private String brandPageLink;
@Column(name = "\"BRAND_LOGO_IMAGE\"", length = 500) @Column(name = "\"BRAND_LOGO_IMAGE\"", length = 500)
private String brandLogoImage; private String brandLogoImage;
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 500) @Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 500)
private String productPageViewTracking; private String productPageViewTracking;
@Column(name = "\"PARENT_GROUP_ID\"", length = 200) @Column(name = "\"PARENT_GROUP_ID\"", length = 200)
private String parentGroupId; private String parentGroupId;
@Column(name = "\"FINELINE\"", length = 200) @Column(name = "\"FINELINE\"", length = 200)
private String fineline; private String fineline;
@Column(name = "\"SUPERFINELINE\"", length = 200) @Column(name = "\"SUPERFINELINE\"", length = 200)
private String superfineline; private String superfineline;
@Column(name = "\"MODELNUMBER\"", length = 100) @Column(name = "\"MODELNUMBER\"", length = 100)
private String modelnumber; private String modelnumber;
@Column(name = "\"CALIBER\"", length = 200) @Column(name = "\"CALIBER\"", length = 200)
private String caliber; private String caliber;
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 500) @Column(name = "\"MEDIUM_IMAGE_URL\"", length = 500)
private String mediumImageUrl; private String mediumImageUrl;
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 500) @Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 500)
private String productContentWidget; private String productContentWidget;
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 500) @Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 500)
private String googleCategorization; private String googleCategorization;
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 500) @Column(name = "\"ITEM_BASED_COMMISSION\"", length = 500)
private String itemBasedCommission; private String itemBasedCommission;
@Column(name = "\"ITEM_BASED_COMMISSION RATE\"", length = 50) @Column(name = "\"ITEM_BASED_COMMISSION RATE\"", length = 50)
private String itemBasedCommissionRate; private String itemBasedCommissionRate;
public UUID getId() { public UUID getId() {
return id; return id;
} }
public void setId(UUID id) { public void setId(UUID id) {
this.id = id; this.id = id;
} }
public String getUpc() { public String getUpc() {
return upc; return upc;
} }
public void setUpc(String upc) { public void setUpc(String upc) {
this.upc = upc; this.upc = upc;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public String getSku() { public String getSku() {
return sku; return sku;
} }
public void setSku(String sku) { public void setSku(String sku) {
this.sku = sku; this.sku = sku;
} }
public String getManufacturerId() { public String getManufacturerId() {
return manufacturerId; return manufacturerId;
} }
public void setManufacturerId(String manufacturerId) { public void setManufacturerId(String manufacturerId) {
this.manufacturerId = manufacturerId; this.manufacturerId = manufacturerId;
} }
public String getBrandName() { public String getBrandName() {
return brandName; return brandName;
} }
public void setBrandName(String brandName) { public void setBrandName(String brandName) {
this.brandName = brandName; this.brandName = brandName;
} }
public String getProductName() { public String getProductName() {
return productName; return productName;
} }
public void setProductName(String productName) { public void setProductName(String productName) {
this.productName = productName; this.productName = productName;
} }
public String getLongDescription() { public String getLongDescription() {
return longDescription; return longDescription;
} }
public void setLongDescription(String longDescription) { public void setLongDescription(String longDescription) {
this.longDescription = longDescription; this.longDescription = longDescription;
} }
public String getShortDescription() { public String getShortDescription() {
return shortDescription; return shortDescription;
} }
public void setShortDescription(String shortDescription) { public void setShortDescription(String shortDescription) {
this.shortDescription = shortDescription; this.shortDescription = shortDescription;
} }
public String getDepartment() { public String getDepartment() {
return department; return department;
} }
public void setDepartment(String department) { public void setDepartment(String department) {
this.department = department; this.department = department;
} }
public String getCategory() { public String getCategory() {
return category; return category;
} }
public void setCategory(String category) { public void setCategory(String category) {
this.category = category; this.category = category;
} }
public String getSubcategory() { public String getSubcategory() {
return subcategory; return subcategory;
} }
public void setSubcategory(String subcategory) { public void setSubcategory(String subcategory) {
this.subcategory = subcategory; this.subcategory = subcategory;
} }
public String getThumbUrl() { public String getThumbUrl() {
return thumbUrl; return thumbUrl;
} }
public void setThumbUrl(String thumbUrl) { public void setThumbUrl(String thumbUrl) {
this.thumbUrl = thumbUrl; this.thumbUrl = thumbUrl;
} }
public String getImageUrl() { public String getImageUrl() {
return imageUrl; return imageUrl;
} }
public void setImageUrl(String imageUrl) { public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl; this.imageUrl = imageUrl;
} }
public String getBuyLink() { public String getBuyLink() {
return buyLink; return buyLink;
} }
public void setBuyLink(String buyLink) { public void setBuyLink(String buyLink) {
this.buyLink = buyLink; this.buyLink = buyLink;
} }
public String getKeywords() { public String getKeywords() {
return keywords; return keywords;
} }
public void setKeywords(String keywords) { public void setKeywords(String keywords) {
this.keywords = keywords; this.keywords = keywords;
} }
public String getReviews() { public String getReviews() {
return reviews; return reviews;
} }
public void setReviews(String reviews) { public void setReviews(String reviews) {
this.reviews = reviews; this.reviews = reviews;
} }
public String getRetailPrice() { public String getRetailPrice() {
return retailPrice; return retailPrice;
} }
public void setRetailPrice(String retailPrice) { public void setRetailPrice(String retailPrice) {
this.retailPrice = retailPrice; this.retailPrice = retailPrice;
} }
public String getSalePrice() { public String getSalePrice() {
return salePrice; return salePrice;
} }
public void setSalePrice(String salePrice) { public void setSalePrice(String salePrice) {
this.salePrice = salePrice; this.salePrice = salePrice;
} }
public String getBrandPageLink() { public String getBrandPageLink() {
return brandPageLink; return brandPageLink;
} }
public void setBrandPageLink(String brandPageLink) { public void setBrandPageLink(String brandPageLink) {
this.brandPageLink = brandPageLink; this.brandPageLink = brandPageLink;
} }
public String getBrandLogoImage() { public String getBrandLogoImage() {
return brandLogoImage; return brandLogoImage;
} }
public void setBrandLogoImage(String brandLogoImage) { public void setBrandLogoImage(String brandLogoImage) {
this.brandLogoImage = brandLogoImage; this.brandLogoImage = brandLogoImage;
} }
public String getProductPageViewTracking() { public String getProductPageViewTracking() {
return productPageViewTracking; return productPageViewTracking;
} }
public void setProductPageViewTracking(String productPageViewTracking) { public void setProductPageViewTracking(String productPageViewTracking) {
this.productPageViewTracking = productPageViewTracking; this.productPageViewTracking = productPageViewTracking;
} }
public String getParentGroupId() { public String getParentGroupId() {
return parentGroupId; return parentGroupId;
} }
public void setParentGroupId(String parentGroupId) { public void setParentGroupId(String parentGroupId) {
this.parentGroupId = parentGroupId; this.parentGroupId = parentGroupId;
} }
public String getFineline() { public String getFineline() {
return fineline; return fineline;
} }
public void setFineline(String fineline) { public void setFineline(String fineline) {
this.fineline = fineline; this.fineline = fineline;
} }
public String getSuperfineline() { public String getSuperfineline() {
return superfineline; return superfineline;
} }
public void setSuperfineline(String superfineline) { public void setSuperfineline(String superfineline) {
this.superfineline = superfineline; this.superfineline = superfineline;
} }
public String getModelnumber() { public String getModelnumber() {
return modelnumber; return modelnumber;
} }
public void setModelnumber(String modelnumber) { public void setModelnumber(String modelnumber) {
this.modelnumber = modelnumber; this.modelnumber = modelnumber;
} }
public String getCaliber() { public String getCaliber() {
return caliber; return caliber;
} }
public void setCaliber(String caliber) { public void setCaliber(String caliber) {
this.caliber = caliber; this.caliber = caliber;
} }
public String getMediumImageUrl() { public String getMediumImageUrl() {
return mediumImageUrl; return mediumImageUrl;
} }
public void setMediumImageUrl(String mediumImageUrl) { public void setMediumImageUrl(String mediumImageUrl) {
this.mediumImageUrl = mediumImageUrl; this.mediumImageUrl = mediumImageUrl;
} }
public String getProductContentWidget() { public String getProductContentWidget() {
return productContentWidget; return productContentWidget;
} }
public void setProductContentWidget(String productContentWidget) { public void setProductContentWidget(String productContentWidget) {
this.productContentWidget = productContentWidget; this.productContentWidget = productContentWidget;
} }
public String getGoogleCategorization() { public String getGoogleCategorization() {
return googleCategorization; return googleCategorization;
} }
public void setGoogleCategorization(String googleCategorization) { public void setGoogleCategorization(String googleCategorization) {
this.googleCategorization = googleCategorization; this.googleCategorization = googleCategorization;
} }
public String getItemBasedCommission() { public String getItemBasedCommission() {
return itemBasedCommission; return itemBasedCommission;
} }
public void setItemBasedCommission(String itemBasedCommission) { public void setItemBasedCommission(String itemBasedCommission) {
this.itemBasedCommission = itemBasedCommission; this.itemBasedCommission = itemBasedCommission;
} }
public String getItemBasedCommissionRate() { public String getItemBasedCommissionRate() {
return itemBasedCommissionRate; return itemBasedCommissionRate;
} }
public void setItemBasedCommissionRate(String itemBasedCommissionRate) { public void setItemBasedCommissionRate(String itemBasedCommissionRate) {
this.itemBasedCommissionRate = itemBasedCommissionRate; this.itemBasedCommissionRate = itemBasedCommissionRate;
} }
} }

View File

@@ -1,85 +1,85 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "brands") @Table(name = "brands")
public class Brand { public class Brand {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,107 +1,107 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "builds") @Table(name = "builds")
public class Build { public class Build {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "account_id", nullable = false) @Column(name = "account_id", nullable = false)
private Integer accountId; private Integer accountId;
@Column(name = "name", nullable = false) @Column(name = "name", nullable = false)
private String name; private String name;
@Column(name = "description", length = Integer.MAX_VALUE) @Column(name = "description", length = Integer.MAX_VALUE)
private String description; private String description;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public Integer getAccountId() { public Integer getAccountId() {
return accountId; return accountId;
} }
public void setAccountId(Integer accountId) { public void setAccountId(Integer accountId) {
this.accountId = accountId; this.accountId = accountId;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,96 +1,96 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "builds_components") @Table(name = "builds_components")
public class BuildsComponent { public class BuildsComponent {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "build_id", nullable = false) @Column(name = "build_id", nullable = false)
private Integer buildId; private Integer buildId;
@Column(name = "product_id", nullable = false) @Column(name = "product_id", nullable = false)
private Integer productId; private Integer productId;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public Integer getBuildId() { public Integer getBuildId() {
return buildId; return buildId;
} }
public void setBuildId(Integer buildId) { public void setBuildId(Integer buildId) {
this.buildId = buildId; this.buildId = buildId;
} }
public Integer getProductId() { public Integer getProductId() {
return productId; return productId;
} }
public void setProductId(Integer productId) { public void setProductId(Integer productId) {
this.productId = productId; this.productId = productId;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,96 +1,96 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "categories") @Table(name = "categories")
public class Category { public class Category {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@Column(name = "parent_category_id") @Column(name = "parent_category_id")
private Integer parentCategoryId; private Integer parentCategoryId;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Integer getParentCategoryId() { public Integer getParentCategoryId() {
return parentCategoryId; return parentCategoryId;
} }
public void setParentCategoryId(Integer parentCategoryId) { public void setParentCategoryId(Integer parentCategoryId) {
this.parentCategoryId = parentCategoryId; this.parentCategoryId = parentCategoryId;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,85 +1,85 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "compartment") @Table(name = "compartment")
public class Compartment { public class Compartment {
@Id @Id
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private UUID id; private UUID id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@Column(name = "description", length = 300) @Column(name = "description", length = 300)
private String description; private String description;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
public UUID getId() { public UUID getId() {
return id; return id;
} }
public void setId(UUID id) { public void setId(UUID id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
} }

View File

@@ -1,85 +1,85 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "component_type") @Table(name = "component_type")
public class ComponentType { public class ComponentType {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,71 +1,71 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
@Entity @Entity
@Table(name = "email_verification_codes") @Table(name = "email_verification_codes")
public class EmailVerificationCode { public class EmailVerificationCode {
@Id @Id
@ColumnDefault("nextval('email_verification_codes_id_seq')") @ColumnDefault("nextval('email_verification_codes_id_seq')")
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "user_id", nullable = false, length = 21) @Column(name = "user_id", nullable = false, length = 21)
private String userId; private String userId;
@Column(name = "email", nullable = false) @Column(name = "email", nullable = false)
private String email; private String email;
@Column(name = "code", nullable = false, length = 8) @Column(name = "code", nullable = false, length = 8)
private String code; private String code;
@Column(name = "expires_at", nullable = false) @Column(name = "expires_at", nullable = false)
private OffsetDateTime expiresAt; private OffsetDateTime expiresAt;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
public void setUserId(String userId) { public void setUserId(String userId) {
this.userId = userId; this.userId = userId;
} }
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public OffsetDateTime getExpiresAt() { public OffsetDateTime getExpiresAt() {
return expiresAt; return expiresAt;
} }
public void setExpiresAt(OffsetDateTime expiresAt) { public void setExpiresAt(OffsetDateTime expiresAt) {
this.expiresAt = expiresAt; this.expiresAt = expiresAt;
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,85 +1,85 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "manufacturer") @Table(name = "manufacturer")
public class Manufacturer { public class Manufacturer {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,47 +1,47 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
@Entity @Entity
@Table(name = "password_reset_tokens") @Table(name = "password_reset_tokens")
public class PasswordResetToken { public class PasswordResetToken {
@Id @Id
@Column(name = "id", nullable = false, length = 40) @Column(name = "id", nullable = false, length = 40)
private String id; private String id;
@Column(name = "user_id", nullable = false, length = 21) @Column(name = "user_id", nullable = false, length = 21)
private String userId; private String userId;
@Column(name = "expires_at", nullable = false) @Column(name = "expires_at", nullable = false)
private OffsetDateTime expiresAt; private OffsetDateTime expiresAt;
public String getId() { public String getId() {
return id; return id;
} }
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
public void setUserId(String userId) { public void setUserId(String userId) {
this.userId = userId; this.userId = userId;
} }
public OffsetDateTime getExpiresAt() { public OffsetDateTime getExpiresAt() {
return expiresAt; return expiresAt;
} }
public void setExpiresAt(OffsetDateTime expiresAt) { public void setExpiresAt(OffsetDateTime expiresAt) {
this.expiresAt = expiresAt; this.expiresAt = expiresAt;
} }
} }

View File

@@ -1,116 +1,116 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
@Entity @Entity
@Table(name = "posts") @Table(name = "posts")
public class Post { public class Post {
@Id @Id
@Column(name = "id", nullable = false, length = 15) @Column(name = "id", nullable = false, length = 15)
private String id; private String id;
@Column(name = "user_id", nullable = false) @Column(name = "user_id", nullable = false)
private String userId; private String userId;
@Column(name = "title", nullable = false) @Column(name = "title", nullable = false)
private String title; private String title;
@Column(name = "excerpt", nullable = false) @Column(name = "excerpt", nullable = false)
private String excerpt; private String excerpt;
@Column(name = "content", nullable = false, length = Integer.MAX_VALUE) @Column(name = "content", nullable = false, length = Integer.MAX_VALUE)
private String content; private String content;
@ColumnDefault("'draft'") @ColumnDefault("'draft'")
@Column(name = "status", nullable = false, length = 10) @Column(name = "status", nullable = false, length = 10)
private String status; private String status;
@Column(name = "tags") @Column(name = "tags")
private String tags; private String tags;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "updated_at") @Column(name = "updated_at")
private Instant updatedAt; private Instant updatedAt;
public String getId() { public String getId() {
return id; return id;
} }
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
public void setUserId(String userId) { public void setUserId(String userId) {
this.userId = userId; this.userId = userId;
} }
public String getTitle() { public String getTitle() {
return title; return title;
} }
public void setTitle(String title) { public void setTitle(String title) {
this.title = title; this.title = title;
} }
public String getExcerpt() { public String getExcerpt() {
return excerpt; return excerpt;
} }
public void setExcerpt(String excerpt) { public void setExcerpt(String excerpt) {
this.excerpt = excerpt; this.excerpt = excerpt;
} }
public String getContent() { public String getContent() {
return content; return content;
} }
public void setContent(String content) { public void setContent(String content) {
this.content = content; this.content = content;
} }
public String getStatus() { public String getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(String status) {
this.status = status; this.status = status;
} }
public String getTags() { public String getTags() {
return tags; return tags;
} }
public void setTags(String tags) { public void setTags(String tags) {
this.tags = tags; this.tags = tags;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
} }

View File

@@ -1,129 +1,129 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.Instant; import java.time.Instant;
@Entity @Entity
@Table(name = "products") @Table(name = "products")
public class Product { public class Product {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "name", nullable = false) @Column(name = "name", nullable = false)
private String name; private String name;
@Column(name = "description", nullable = false, length = Integer.MAX_VALUE) @Column(name = "description", nullable = false, length = Integer.MAX_VALUE)
private String description; private String description;
@Column(name = "price", nullable = false) @Column(name = "price", nullable = false)
private BigDecimal price; private BigDecimal price;
@Column(name = "reseller_id", nullable = false) @Column(name = "reseller_id", nullable = false)
private Integer resellerId; private Integer resellerId;
@Column(name = "category_id", nullable = false) @Column(name = "category_id", nullable = false)
private Integer categoryId; private Integer categoryId;
@ColumnDefault("0") @ColumnDefault("0")
@Column(name = "stock_qty") @Column(name = "stock_qty")
private Integer stockQty; private Integer stockQty;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
public BigDecimal getPrice() { public BigDecimal getPrice() {
return price; return price;
} }
public void setPrice(BigDecimal price) { public void setPrice(BigDecimal price) {
this.price = price; this.price = price;
} }
public Integer getResellerId() { public Integer getResellerId() {
return resellerId; return resellerId;
} }
public void setResellerId(Integer resellerId) { public void setResellerId(Integer resellerId) {
this.resellerId = resellerId; this.resellerId = resellerId;
} }
public Integer getCategoryId() { public Integer getCategoryId() {
return categoryId; return categoryId;
} }
public void setCategoryId(Integer categoryId) { public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId; this.categoryId = categoryId;
} }
public Integer getStockQty() { public Integer getStockQty() {
return stockQty; return stockQty;
} }
public void setStockQty(Integer stockQty) { public void setStockQty(Integer stockQty) {
this.stockQty = stockQty; this.stockQty = stockQty;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
} }

View File

@@ -1,107 +1,107 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "product_feeds") @Table(name = "product_feeds")
public class ProductFeed { public class ProductFeed {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "reseller_id", nullable = false) @Column(name = "reseller_id", nullable = false)
private Integer resellerId; private Integer resellerId;
@Column(name = "feed_url", nullable = false) @Column(name = "feed_url", nullable = false)
private String feedUrl; private String feedUrl;
@Column(name = "last_update") @Column(name = "last_update")
private Instant lastUpdate; private Instant lastUpdate;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "updated_at", nullable = false) @Column(name = "updated_at", nullable = false)
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_at", nullable = false) @Column(name = "created_at", nullable = false)
private Instant createdAt; private Instant createdAt;
@Column(name = "deleted_at") @Column(name = "deleted_at")
private Instant deletedAt; private Instant deletedAt;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public Integer getResellerId() { public Integer getResellerId() {
return resellerId; return resellerId;
} }
public void setResellerId(Integer resellerId) { public void setResellerId(Integer resellerId) {
this.resellerId = resellerId; this.resellerId = resellerId;
} }
public String getFeedUrl() { public String getFeedUrl() {
return feedUrl; return feedUrl;
} }
public void setFeedUrl(String feedUrl) { public void setFeedUrl(String feedUrl) {
this.feedUrl = feedUrl; this.feedUrl = feedUrl;
} }
public Instant getLastUpdate() { public Instant getLastUpdate() {
return lastUpdate; return lastUpdate;
} }
public void setLastUpdate(Instant lastUpdate) { public void setLastUpdate(Instant lastUpdate) {
this.lastUpdate = lastUpdate; this.lastUpdate = lastUpdate;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getDeletedAt() { public Instant getDeletedAt() {
return deletedAt; return deletedAt;
} }
public void setDeletedAt(Instant deletedAt) { public void setDeletedAt(Instant deletedAt) {
this.deletedAt = deletedAt; this.deletedAt = deletedAt;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,359 +1,359 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "psa") @Table(name = "psa")
public class Psa { public class Psa {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "\"SKU\"", length = 50) @Column(name = "\"SKU\"", length = 50)
private String sku; private String sku;
@Column(name = "\"MANUFACTURER_ID\"", length = 50) @Column(name = "\"MANUFACTURER_ID\"", length = 50)
private String manufacturerId; private String manufacturerId;
@Column(name = "\"BRAND_NAME\"", length = 50) @Column(name = "\"BRAND_NAME\"", length = 50)
private String brandName; private String brandName;
@Column(name = "\"PRODUCT_NAME\"") @Column(name = "\"PRODUCT_NAME\"")
private String productName; private String productName;
@Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE) @Column(name = "\"LONG_DESCRIPTION\"", length = Integer.MAX_VALUE)
private String longDescription; private String longDescription;
@Column(name = "\"SHORT_DESCRIPTION\"", length = 50) @Column(name = "\"SHORT_DESCRIPTION\"", length = 50)
private String shortDescription; private String shortDescription;
@Column(name = "\"DEPARTMENT\"", length = 50) @Column(name = "\"DEPARTMENT\"", length = 50)
private String department; private String department;
@Column(name = "\"CATEGORY\"", length = 50) @Column(name = "\"CATEGORY\"", length = 50)
private String category; private String category;
@Column(name = "\"SUBCATEGORY\"", length = 50) @Column(name = "\"SUBCATEGORY\"", length = 50)
private String subcategory; private String subcategory;
@Column(name = "\"THUMB_URL\"", length = 50) @Column(name = "\"THUMB_URL\"", length = 50)
private String thumbUrl; private String thumbUrl;
@Column(name = "\"IMAGE_URL\"", length = 50) @Column(name = "\"IMAGE_URL\"", length = 50)
private String imageUrl; private String imageUrl;
@Column(name = "\"BUY_LINK\"", length = 128) @Column(name = "\"BUY_LINK\"", length = 128)
private String buyLink; private String buyLink;
@Column(name = "\"KEYWORDS\"", length = 50) @Column(name = "\"KEYWORDS\"", length = 50)
private String keywords; private String keywords;
@Column(name = "\"REVIEWS\"", length = 50) @Column(name = "\"REVIEWS\"", length = 50)
private String reviews; private String reviews;
@Column(name = "\"RETAIL_PRICE\"") @Column(name = "\"RETAIL_PRICE\"")
private Float retailPrice; private Float retailPrice;
@Column(name = "\"SALE_PRICE\"") @Column(name = "\"SALE_PRICE\"")
private Float salePrice; private Float salePrice;
@Column(name = "\"BRAND_PAGE_LINK\"", length = 50) @Column(name = "\"BRAND_PAGE_LINK\"", length = 50)
private String brandPageLink; private String brandPageLink;
/* @Column(name = "\"BRAND_LOGO_IMAGE\"", length = 50) /* @Column(name = "\"BRAND_LOGO_IMAGE\"", length = 50)
private String brandLogoImage;*/ private String brandLogoImage;*/
@Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 256) @Column(name = "\"PRODUCT_PAGE_VIEW_TRACKING\"", length = 256)
private String productPageViewTracking; private String productPageViewTracking;
@Column(name = "\"PARENT_GROUP_ID\"", length = 50) @Column(name = "\"PARENT_GROUP_ID\"", length = 50)
private String parentGroupId; private String parentGroupId;
@Column(name = "\"FINELINE\"", length = 50) @Column(name = "\"FINELINE\"", length = 50)
private String fineline; private String fineline;
@Column(name = "\"SUPERFINELINE\"", length = 200) @Column(name = "\"SUPERFINELINE\"", length = 200)
private String superfineline; private String superfineline;
@Column(name = "\"MODELNUMBER\"", length = 50) @Column(name = "\"MODELNUMBER\"", length = 50)
private String modelnumber; private String modelnumber;
@Column(name = "\"CALIBER\"", length = 200) @Column(name = "\"CALIBER\"", length = 200)
private String caliber; private String caliber;
@Column(name = "\"UPC\"", length = 100) @Column(name = "\"UPC\"", length = 100)
private String upc; private String upc;
@Column(name = "\"MEDIUM_IMAGE_URL\"", length = 50) @Column(name = "\"MEDIUM_IMAGE_URL\"", length = 50)
private String mediumImageUrl; private String mediumImageUrl;
@Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 256) @Column(name = "\"PRODUCT_CONTENT_WIDGET\"", length = 256)
private String productContentWidget; private String productContentWidget;
@Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 50) @Column(name = "\"GOOGLE_CATEGORIZATION\"", length = 50)
private String googleCategorization; private String googleCategorization;
@Column(name = "\"ITEM_BASED_COMMISSION\"", length = 50) @Column(name = "\"ITEM_BASED_COMMISSION\"", length = 50)
private String itemBasedCommission; private String itemBasedCommission;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private String uuid; private String uuid;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getSku() { public String getSku() {
return sku; return sku;
} }
public void setSku(String sku) { public void setSku(String sku) {
this.sku = sku; this.sku = sku;
} }
public String getManufacturerId() { public String getManufacturerId() {
return manufacturerId; return manufacturerId;
} }
public void setManufacturerId(String manufacturerId) { public void setManufacturerId(String manufacturerId) {
this.manufacturerId = manufacturerId; this.manufacturerId = manufacturerId;
} }
public String getBrandName() { public String getBrandName() {
return brandName; return brandName;
} }
public void setBrandName(String brandName) { public void setBrandName(String brandName) {
this.brandName = brandName; this.brandName = brandName;
} }
public String getProductName() { public String getProductName() {
return productName; return productName;
} }
public void setProductName(String productName) { public void setProductName(String productName) {
this.productName = productName; this.productName = productName;
} }
public String getLongDescription() { public String getLongDescription() {
return longDescription; return longDescription;
} }
public void setLongDescription(String longDescription) { public void setLongDescription(String longDescription) {
this.longDescription = longDescription; this.longDescription = longDescription;
} }
public String getShortDescription() { public String getShortDescription() {
return shortDescription; return shortDescription;
} }
public void setShortDescription(String shortDescription) { public void setShortDescription(String shortDescription) {
this.shortDescription = shortDescription; this.shortDescription = shortDescription;
} }
public String getDepartment() { public String getDepartment() {
return department; return department;
} }
public void setDepartment(String department) { public void setDepartment(String department) {
this.department = department; this.department = department;
} }
public String getCategory() { public String getCategory() {
return category; return category;
} }
public void setCategory(String category) { public void setCategory(String category) {
this.category = category; this.category = category;
} }
public String getSubcategory() { public String getSubcategory() {
return subcategory; return subcategory;
} }
public void setSubcategory(String subcategory) { public void setSubcategory(String subcategory) {
this.subcategory = subcategory; this.subcategory = subcategory;
} }
public String getThumbUrl() { public String getThumbUrl() {
return thumbUrl; return thumbUrl;
} }
public void setThumbUrl(String thumbUrl) { public void setThumbUrl(String thumbUrl) {
this.thumbUrl = thumbUrl; this.thumbUrl = thumbUrl;
} }
public String getImageUrl() { public String getImageUrl() {
return imageUrl; return imageUrl;
} }
public void setImageUrl(String imageUrl) { public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl; this.imageUrl = imageUrl;
} }
public String getBuyLink() { public String getBuyLink() {
return buyLink; return buyLink;
} }
public void setBuyLink(String buyLink) { public void setBuyLink(String buyLink) {
this.buyLink = buyLink; this.buyLink = buyLink;
} }
public String getKeywords() { public String getKeywords() {
return keywords; return keywords;
} }
public void setKeywords(String keywords) { public void setKeywords(String keywords) {
this.keywords = keywords; this.keywords = keywords;
} }
public String getReviews() { public String getReviews() {
return reviews; return reviews;
} }
public void setReviews(String reviews) { public void setReviews(String reviews) {
this.reviews = reviews; this.reviews = reviews;
} }
public Float getRetailPrice() { public Float getRetailPrice() {
return retailPrice; return retailPrice;
} }
public void setRetailPrice(Float retailPrice) { public void setRetailPrice(Float retailPrice) {
this.retailPrice = retailPrice; this.retailPrice = retailPrice;
} }
public Float getSalePrice() { public Float getSalePrice() {
return salePrice; return salePrice;
} }
public void setSalePrice(Float salePrice) { public void setSalePrice(Float salePrice) {
this.salePrice = salePrice; this.salePrice = salePrice;
} }
public String getBrandPageLink() { public String getBrandPageLink() {
return brandPageLink; return brandPageLink;
} }
public void setBrandPageLink(String brandPageLink) { public void setBrandPageLink(String brandPageLink) {
this.brandPageLink = brandPageLink; this.brandPageLink = brandPageLink;
} }
/* /*
public String getBrandLogoImage() { public String getBrandLogoImage() {
return brandLogoImage; return brandLogoImage;
} }
public void setBrandLogoImage(String brandLogoImage) { public void setBrandLogoImage(String brandLogoImage) {
this.brandLogoImage = brandLogoImage; this.brandLogoImage = brandLogoImage;
} }
*/ */
public String getProductPageViewTracking() { public String getProductPageViewTracking() {
return productPageViewTracking; return productPageViewTracking;
} }
public void setProductPageViewTracking(String productPageViewTracking) { public void setProductPageViewTracking(String productPageViewTracking) {
this.productPageViewTracking = productPageViewTracking; this.productPageViewTracking = productPageViewTracking;
} }
public String getParentGroupId() { public String getParentGroupId() {
return parentGroupId; return parentGroupId;
} }
public void setParentGroupId(String parentGroupId) { public void setParentGroupId(String parentGroupId) {
this.parentGroupId = parentGroupId; this.parentGroupId = parentGroupId;
} }
public String getFineline() { public String getFineline() {
return fineline; return fineline;
} }
public void setFineline(String fineline) { public void setFineline(String fineline) {
this.fineline = fineline; this.fineline = fineline;
} }
public String getSuperfineline() { public String getSuperfineline() {
return superfineline; return superfineline;
} }
public void setSuperfineline(String superfineline) { public void setSuperfineline(String superfineline) {
this.superfineline = superfineline; this.superfineline = superfineline;
} }
public String getModelnumber() { public String getModelnumber() {
return modelnumber; return modelnumber;
} }
public void setModelnumber(String modelnumber) { public void setModelnumber(String modelnumber) {
this.modelnumber = modelnumber; this.modelnumber = modelnumber;
} }
public String getCaliber() { public String getCaliber() {
return caliber; return caliber;
} }
public void setCaliber(String caliber) { public void setCaliber(String caliber) {
this.caliber = caliber; this.caliber = caliber;
} }
public String getUpc() { public String getUpc() {
return upc; return upc;
} }
public void setUpc(String upc) { public void setUpc(String upc) {
this.upc = upc; this.upc = upc;
} }
public String getMediumImageUrl() { public String getMediumImageUrl() {
return mediumImageUrl; return mediumImageUrl;
} }
public void setMediumImageUrl(String mediumImageUrl) { public void setMediumImageUrl(String mediumImageUrl) {
this.mediumImageUrl = mediumImageUrl; this.mediumImageUrl = mediumImageUrl;
} }
public String getProductContentWidget() { public String getProductContentWidget() {
return productContentWidget; return productContentWidget;
} }
public void setProductContentWidget(String productContentWidget) { public void setProductContentWidget(String productContentWidget) {
this.productContentWidget = productContentWidget; this.productContentWidget = productContentWidget;
} }
public String getGoogleCategorization() { public String getGoogleCategorization() {
return googleCategorization; return googleCategorization;
} }
public void setGoogleCategorization(String googleCategorization) { public void setGoogleCategorization(String googleCategorization) {
this.googleCategorization = googleCategorization; this.googleCategorization = googleCategorization;
} }
public String getItemBasedCommission() { public String getItemBasedCommission() {
return itemBasedCommission; return itemBasedCommission;
} }
public void setItemBasedCommission(String itemBasedCommission) { public void setItemBasedCommission(String itemBasedCommission) {
this.itemBasedCommission = itemBasedCommission; this.itemBasedCommission = itemBasedCommission;
} }
public String getUuid() { public String getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(String uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
} }

View File

@@ -1,23 +1,23 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
@Entity @Entity
@Table(name = "psa_old") @Table(name = "psa_old")
public class PsaOld { public class PsaOld {
@Id @Id
@Column(name = "\"SKU\"", length = 50) @Column(name = "\"SKU\"", length = 50)
private String sku; private String sku;
public String getSku() { public String getSku() {
return sku; return sku;
} }
public void setSku(String sku) { public void setSku(String sku) {
this.sku = sku; this.sku = sku;
} }
} }

View File

@@ -1,73 +1,73 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
@Entity @Entity
@Table(name = "sessions") @Table(name = "sessions")
public class Session { public class Session {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private String id; private String id;
@Column(name = "user_id", nullable = false, length = 21) @Column(name = "user_id", nullable = false, length = 21)
private String userId; private String userId;
@Column(name = "expires_at", nullable = false) @Column(name = "expires_at", nullable = false)
private OffsetDateTime expiresAt; private OffsetDateTime expiresAt;
@ColumnDefault("CURRENT_TIMESTAMP") @ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "created_at") @Column(name = "created_at")
private Instant createdAt; private Instant createdAt;
@ColumnDefault("CURRENT_TIMESTAMP") @ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "updated_at") @Column(name = "updated_at")
private Instant updatedAt; private Instant updatedAt;
public String getId() { public String getId() {
return id; return id;
} }
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
public void setUserId(String userId) { public void setUserId(String userId) {
this.userId = userId; this.userId = userId;
} }
public OffsetDateTime getExpiresAt() { public OffsetDateTime getExpiresAt() {
return expiresAt; return expiresAt;
} }
public void setExpiresAt(OffsetDateTime expiresAt) { public void setExpiresAt(OffsetDateTime expiresAt) {
this.expiresAt = expiresAt; this.expiresAt = expiresAt;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
} }

View File

@@ -1,45 +1,45 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
@Entity @Entity
@Table(name = "states") @Table(name = "states")
public class State { public class State {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Integer id; private Integer id;
@Column(name = "state", length = 50) @Column(name = "state", length = 50)
private String state; private String state;
@Column(name = "abbreviation", length = 50) @Column(name = "abbreviation", length = 50)
private String abbreviation; private String abbreviation;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getState() { public String getState() {
return state; return state;
} }
public void setState(String state) { public void setState(String state) {
this.state = state; this.state = state;
} }
public String getAbbreviation() { public String getAbbreviation() {
return abbreviation; return abbreviation;
} }
public void setAbbreviation(String abbreviation) { public void setAbbreviation(String abbreviation) {
this.abbreviation = abbreviation; this.abbreviation = abbreviation;
} }
} }

View File

@@ -1,298 +1,298 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.UUID; import java.util.UUID;
@Entity @Entity
@Table(name = "users") @Table(name = "users")
public class User { public class User {
@Id @Id
@Column(name = "id", nullable = false, length = 21) @Column(name = "id", nullable = false, length = 21)
private String id; private String id;
@Column(name = "name", length = Integer.MAX_VALUE) @Column(name = "name", length = Integer.MAX_VALUE)
private String name; private String name;
@Column(name = "username", length = 50) @Column(name = "username", length = 50)
private String username; private String username;
@Column(name = "email", nullable = false) @Column(name = "email", nullable = false)
private String email; private String email;
@Column(name = "first_name", length = 50) @Column(name = "first_name", length = 50)
private String firstName; private String firstName;
@Column(name = "last_name", length = 50) @Column(name = "last_name", length = 50)
private String lastName; private String lastName;
@Column(name = "full_name", length = 50) @Column(name = "full_name", length = 50)
private String fullName; private String fullName;
@Column(name = "profile_picture") @Column(name = "profile_picture")
private String profilePicture; private String profilePicture;
@Column(name = "image", length = Integer.MAX_VALUE) @Column(name = "image", length = Integer.MAX_VALUE)
private String image; private String image;
@Column(name = "date_of_birth") @Column(name = "date_of_birth")
private LocalDate dateOfBirth; private LocalDate dateOfBirth;
@Column(name = "phone_number", length = 20) @Column(name = "phone_number", length = 20)
private String phoneNumber; private String phoneNumber;
@ColumnDefault("CURRENT_TIMESTAMP") @ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "created_at") @Column(name = "created_at")
private Instant createdAt; private Instant createdAt;
@ColumnDefault("CURRENT_TIMESTAMP") @ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "updated_at") @Column(name = "updated_at")
private Instant updatedAt; private Instant updatedAt;
@ColumnDefault("false") @ColumnDefault("false")
@Column(name = "is_admin") @Column(name = "is_admin")
private Boolean isAdmin; private Boolean isAdmin;
@Column(name = "last_login") @Column(name = "last_login")
private Instant lastLogin; private Instant lastLogin;
@ColumnDefault("false") @ColumnDefault("false")
@Column(name = "email_verified", nullable = false) @Column(name = "email_verified", nullable = false)
private Boolean emailVerified = false; private Boolean emailVerified = false;
@ColumnDefault("'public'") @ColumnDefault("'public'")
@Column(name = "build_privacy_setting", length = Integer.MAX_VALUE) @Column(name = "build_privacy_setting", length = Integer.MAX_VALUE)
private String buildPrivacySetting; private String buildPrivacySetting;
@ColumnDefault("gen_random_uuid()") @ColumnDefault("gen_random_uuid()")
@Column(name = "uuid") @Column(name = "uuid")
private UUID uuid; private UUID uuid;
@Column(name = "discord_id") @Column(name = "discord_id")
private String discordId; private String discordId;
@Column(name = "hashed_password") @Column(name = "hashed_password")
private String hashedPassword; private String hashedPassword;
@Column(name = "avatar") @Column(name = "avatar")
private String avatar; private String avatar;
@Column(name = "stripe_subscription_id", length = 191) @Column(name = "stripe_subscription_id", length = 191)
private String stripeSubscriptionId; private String stripeSubscriptionId;
@Column(name = "stripe_price_id", length = 191) @Column(name = "stripe_price_id", length = 191)
private String stripePriceId; private String stripePriceId;
@Column(name = "stripe_customer_id", length = 191) @Column(name = "stripe_customer_id", length = 191)
private String stripeCustomerId; private String stripeCustomerId;
@Column(name = "stripe_current_period_end") @Column(name = "stripe_current_period_end")
private Instant stripeCurrentPeriodEnd; private Instant stripeCurrentPeriodEnd;
public String getId() { public String getId() {
return id; return id;
} }
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
} }
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
public void setLastName(String lastName) { public void setLastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
} }
public String getFullName() { public String getFullName() {
return fullName; return fullName;
} }
public void setFullName(String fullName) { public void setFullName(String fullName) {
this.fullName = fullName; this.fullName = fullName;
} }
public String getProfilePicture() { public String getProfilePicture() {
return profilePicture; return profilePicture;
} }
public void setProfilePicture(String profilePicture) { public void setProfilePicture(String profilePicture) {
this.profilePicture = profilePicture; this.profilePicture = profilePicture;
} }
public String getImage() { public String getImage() {
return image; return image;
} }
public void setImage(String image) { public void setImage(String image) {
this.image = image; this.image = image;
} }
public LocalDate getDateOfBirth() { public LocalDate getDateOfBirth() {
return dateOfBirth; return dateOfBirth;
} }
public void setDateOfBirth(LocalDate dateOfBirth) { public void setDateOfBirth(LocalDate dateOfBirth) {
this.dateOfBirth = dateOfBirth; this.dateOfBirth = dateOfBirth;
} }
public String getPhoneNumber() { public String getPhoneNumber() {
return phoneNumber; return phoneNumber;
} }
public void setPhoneNumber(String phoneNumber) { public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber; this.phoneNumber = phoneNumber;
} }
public Instant getCreatedAt() { public Instant getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Instant createdAt) { public void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Instant getUpdatedAt() { public Instant getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Instant updatedAt) { public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Boolean getIsAdmin() { public Boolean getIsAdmin() {
return isAdmin; return isAdmin;
} }
public void setIsAdmin(Boolean isAdmin) { public void setIsAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin; this.isAdmin = isAdmin;
} }
public Instant getLastLogin() { public Instant getLastLogin() {
return lastLogin; return lastLogin;
} }
public void setLastLogin(Instant lastLogin) { public void setLastLogin(Instant lastLogin) {
this.lastLogin = lastLogin; this.lastLogin = lastLogin;
} }
public Boolean getEmailVerified() { public Boolean getEmailVerified() {
return emailVerified; return emailVerified;
} }
public void setEmailVerified(Boolean emailVerified) { public void setEmailVerified(Boolean emailVerified) {
this.emailVerified = emailVerified; this.emailVerified = emailVerified;
} }
public String getBuildPrivacySetting() { public String getBuildPrivacySetting() {
return buildPrivacySetting; return buildPrivacySetting;
} }
public void setBuildPrivacySetting(String buildPrivacySetting) { public void setBuildPrivacySetting(String buildPrivacySetting) {
this.buildPrivacySetting = buildPrivacySetting; this.buildPrivacySetting = buildPrivacySetting;
} }
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public String getDiscordId() { public String getDiscordId() {
return discordId; return discordId;
} }
public void setDiscordId(String discordId) { public void setDiscordId(String discordId) {
this.discordId = discordId; this.discordId = discordId;
} }
public String getHashedPassword() { public String getHashedPassword() {
return hashedPassword; return hashedPassword;
} }
public void setHashedPassword(String hashedPassword) { public void setHashedPassword(String hashedPassword) {
this.hashedPassword = hashedPassword; this.hashedPassword = hashedPassword;
} }
public String getAvatar() { public String getAvatar() {
return avatar; return avatar;
} }
public void setAvatar(String avatar) { public void setAvatar(String avatar) {
this.avatar = avatar; this.avatar = avatar;
} }
public String getStripeSubscriptionId() { public String getStripeSubscriptionId() {
return stripeSubscriptionId; return stripeSubscriptionId;
} }
public void setStripeSubscriptionId(String stripeSubscriptionId) { public void setStripeSubscriptionId(String stripeSubscriptionId) {
this.stripeSubscriptionId = stripeSubscriptionId; this.stripeSubscriptionId = stripeSubscriptionId;
} }
public String getStripePriceId() { public String getStripePriceId() {
return stripePriceId; return stripePriceId;
} }
public void setStripePriceId(String stripePriceId) { public void setStripePriceId(String stripePriceId) {
this.stripePriceId = stripePriceId; this.stripePriceId = stripePriceId;
} }
public String getStripeCustomerId() { public String getStripeCustomerId() {
return stripeCustomerId; return stripeCustomerId;
} }
public void setStripeCustomerId(String stripeCustomerId) { public void setStripeCustomerId(String stripeCustomerId) {
this.stripeCustomerId = stripeCustomerId; this.stripeCustomerId = stripeCustomerId;
} }
public Instant getStripeCurrentPeriodEnd() { public Instant getStripeCurrentPeriodEnd() {
return stripeCurrentPeriodEnd; return stripeCurrentPeriodEnd;
} }
public void setStripeCurrentPeriodEnd(Instant stripeCurrentPeriodEnd) { public void setStripeCurrentPeriodEnd(Instant stripeCurrentPeriodEnd) {
this.stripeCurrentPeriodEnd = stripeCurrentPeriodEnd; this.stripeCurrentPeriodEnd = stripeCurrentPeriodEnd;
} }
} }

View File

@@ -1,60 +1,60 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import java.time.Instant; import java.time.Instant;
@Entity @Entity
@Table(name = "user_activity_log") @Table(name = "user_activity_log")
public class UserActivityLog { public class UserActivityLog {
@Id @Id
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Long id; private Long id;
@Column(name = "user_id", nullable = false) @Column(name = "user_id", nullable = false)
private Long userId; private Long userId;
@Column(name = "activity", nullable = false, length = Integer.MAX_VALUE) @Column(name = "activity", nullable = false, length = Integer.MAX_VALUE)
private String activity; private String activity;
@ColumnDefault("CURRENT_TIMESTAMP") @ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "\"timestamp\"") @Column(name = "\"timestamp\"")
private Instant timestamp; private Instant timestamp;
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Long getUserId() { public Long getUserId() {
return userId; return userId;
} }
public void setUserId(Long userId) { public void setUserId(Long userId) {
this.userId = userId; this.userId = userId;
} }
public String getActivity() { public String getActivity() {
return activity; return activity;
} }
public void setActivity(String activity) { public void setActivity(String activity) {
this.activity = activity; this.activity = activity;
} }
public Instant getTimestamp() { public Instant getTimestamp() {
return timestamp; return timestamp;
} }
public void setTimestamp(Instant timestamp) { public void setTimestamp(Instant timestamp) {
this.timestamp = timestamp; this.timestamp = timestamp;
} }
} }

View File

@@ -1,47 +1,47 @@
package group.goforward.ballistic.jpa; package group.goforward.ballistic.jpa;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import java.time.Instant; import java.time.Instant;
@Entity @Entity
@Table(name = "\"verificationTokens\"") @Table(name = "\"verificationTokens\"")
public class VerificationToken { public class VerificationToken {
@Id @Id
@Column(name = "identifier", nullable = false, length = Integer.MAX_VALUE) @Column(name = "identifier", nullable = false, length = Integer.MAX_VALUE)
private String identifier; private String identifier;
@Column(name = "token", nullable = false, length = Integer.MAX_VALUE) @Column(name = "token", nullable = false, length = Integer.MAX_VALUE)
private String token; private String token;
@Column(name = "expires", nullable = false) @Column(name = "expires", nullable = false)
private Instant expires; private Instant expires;
public String getIdentifier() { public String getIdentifier() {
return identifier; return identifier;
} }
public void setIdentifier(String identifier) { public void setIdentifier(String identifier) {
this.identifier = identifier; this.identifier = identifier;
} }
public String getToken() { public String getToken() {
return token; return token;
} }
public void setToken(String token) { public void setToken(String token) {
this.token = token; this.token = token;
} }
public Instant getExpires() { public Instant getExpires() {
return expires; return expires;
} }
public void setExpires(Instant expires) { public void setExpires(Instant expires) {
this.expires = expires; this.expires = expires;
} }
} }

View File

@@ -1,7 +1,7 @@
package group.goforward.ballistic.repos; package group.goforward.ballistic.repos;
import group.goforward.ballistic.jpa.Psa; import group.goforward.ballistic.jpa.Psa;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import java.util.UUID; import java.util.UUID;
public interface PsaRepository extends JpaRepository<Psa, UUID> { public interface PsaRepository extends JpaRepository<Psa, UUID> {
} }

View File

@@ -1,36 +1,36 @@
package group.goforward.ballistic.service; package group.goforward.ballistic.service;
import group.goforward.ballistic.jpa.Psa; import group.goforward.ballistic.jpa.Psa;
import group.goforward.ballistic.repos.PsaRepository; import group.goforward.ballistic.repos.PsaRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.UUID; import java.util.UUID;
@Service @Service
public class PsaService { public class PsaService {
private final PsaRepository psaRepository; private final PsaRepository psaRepository;
@Autowired @Autowired
public PsaService(PsaRepository psaRepository) { public PsaService(PsaRepository psaRepository) {
this.psaRepository = psaRepository; this.psaRepository = psaRepository;
} }
public List<Psa> findAll() { public List<Psa> findAll() {
return psaRepository.findAll(); return psaRepository.findAll();
} }
public Optional<Psa> findById(UUID id) { public Optional<Psa> findById(UUID id) {
return psaRepository.findById(id); return psaRepository.findById(id);
} }
public Psa save(Psa psa) { public Psa save(Psa psa) {
return psaRepository.save(psa); return psaRepository.save(psa);
} }
public void deleteById(UUID id) { public void deleteById(UUID id) {
psaRepository.deleteById(id); psaRepository.deleteById(id);
} }
} }

View File

@@ -1,11 +1,11 @@
spring.application.name=ballistic spring.application.name=ballistic
# Database connection properties # Database connection properties
spring.datasource.url=jdbc:postgresql://r710.gofwd.group:5433/ballistic spring.datasource.url=jdbc:postgresql://r710.gofwd.group:5433/ballistic
spring.datasource.username=postgres spring.datasource.username=postgres
spring.datasource.password=cul8rman spring.datasource.password=cul8rman
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.driver-class-name=org.postgresql.Driver
# Hibernate properties # Hibernate properties
#spring.jpa.hibernate.ddl-auto=update #spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

View File

@@ -1,13 +1,13 @@
package group.goforward.ballistic; package group.goforward.ballistic;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest @SpringBootTest
class BallisticApplicationTests { class BallisticApplicationTests {
@Test @Test
void contextLoads() { void contextLoads() {
} }
} }