Merge branch 'master' of git.mosad.xyz:localhorst/e-commerce

This commit is contained in:
CodeSteak 2020-01-15 21:32:18 +01:00
commit bedcf32b44
4 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@ -86,3 +86,6 @@ local.properties
# Locally stored "Eclipse launch configurations" # Locally stored "Eclipse launch configurations"
*.launch *.launch
# SQLite
prototype/src/main/resources/*.db

View File

@ -7,7 +7,8 @@ import javax.persistence.*;
public class Customer { public class Customer {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy=GenerationType.SEQUENCE, generator = "id_Sequence")
@SequenceGenerator(name = "id_Sequence", sequenceName = "ID_SEQ")
public Long id; public Long id;
public String lastname; public String lastname;
public String firstname; public String firstname;

View File

@ -9,6 +9,7 @@ logging.level.org.springframework.web=INFO
spring.datasource.url = jdbc:sqlite:src/main/resources/test.db spring.datasource.url = jdbc:sqlite:src/main/resources/test.db
spring.datasource.driverClassName = org.sqlite.JDBC spring.datasource.driverClassName = org.sqlite.JDBC
spring.jpa.properties.hibernate.dialect = org.hso.ecommerce.db.SQLiteDialect spring.jpa.properties.hibernate.dialect = org.hso.ecommerce.db.SQLiteDialect
spring.jpa.hibernate.ddl-auto=update
# ---------------------------------------- # ----------------------------------------
# WEB PROPERTIES # WEB PROPERTIES

Binary file not shown.