Created model objects and DB layer.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.jdbernard.nlsongs.model
|
||||
|
||||
public class ApiKey implements Serializable {
|
||||
|
||||
String key
|
||||
String description
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.jdbernard.nlsongs.model
|
||||
|
||||
public class Performance implements Serializable {
|
||||
|
||||
int serviceId
|
||||
int songId
|
||||
String pianist
|
||||
String organist
|
||||
String bassist
|
||||
String drummer
|
||||
String guitarist
|
||||
String leader
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
package com.jdbernard.nlsongs.model
|
||||
|
||||
public class Service implements Serializable {
|
||||
|
||||
int id
|
||||
Date date
|
||||
ServiceType serviceType
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
package com.jdbernard.nlsongs.model;
|
||||
|
||||
public enum ServiceType { SUN_AM, SUN_PM, WED }
|
8
src/main/groovy/com/jdbernard/nlsongs/model/Song.groovy
Normal file
8
src/main/groovy/com/jdbernard/nlsongs/model/Song.groovy
Normal file
@@ -0,0 +1,8 @@
|
||||
package com.jdbernard.nlsongs.model
|
||||
|
||||
public class Song implements Serializable {
|
||||
|
||||
int id
|
||||
String name
|
||||
List<String> artists
|
||||
}
|
8
src/main/groovy/com/jdbernard/nlsongs/model/User.groovy
Normal file
8
src/main/groovy/com/jdbernard/nlsongs/model/User.groovy
Normal file
@@ -0,0 +1,8 @@
|
||||
package com.jdbernard.nlsongs.model
|
||||
|
||||
public class User {
|
||||
|
||||
int id
|
||||
String username
|
||||
String pwd
|
||||
}
|
Reference in New Issue
Block a user