Skip to content

Commit

Permalink
java pizza project #2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
biblelamp committed Jun 23, 2024
1 parent d758722 commit 2d2723d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public class CustomerDbRepository implements CrudRepository<Integer, Customer> {

/*
CREATE TABLE IF NOT EXISTS customer (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT NOT NULL,
address TEXT,
phone TEXT
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT NOT NULL,
address TEXT,
phone TEXT
)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,24 @@
* Implementation of access methods to the ExtComponent data source
*
* @author Sergey Iryupin
* @version 22-Jun-24
* @version 23-Jun-24
*/
public class ExtComponentDbRepository implements CrudRepository<Integer, ExtComponent> {

private String dbName;

/*
CREATE TABLE IF NOT EXISTS ext_component (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT NOT NULL,
price INTEGER
)
*/

public ExtComponentDbRepository(String dbName) {
this.dbName = dbName;
}

@Override
public ExtComponent save(ExtComponent value) {
return null;
Expand Down

0 comments on commit 2d2723d

Please sign in to comment.