preparing to store new locations
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -15,7 +15,7 @@ public class DbLocation extends Location {
|
||||
private String description;
|
||||
private String relation; // when added to an item, this field describes the type of the relation
|
||||
|
||||
private DbLocation(long id, Owner owner, Long parentLocationId, String name, String description){
|
||||
public DbLocation(long id, Owner owner, Long parentLocationId, String name, String description){
|
||||
super(id);
|
||||
this.owner = owner;
|
||||
this.parentLocationId = parentLocationId;
|
||||
@@ -32,7 +32,6 @@ public class DbLocation extends Location {
|
||||
}
|
||||
|
||||
public static DbLocation of(ResultSet rs) throws SQLException {
|
||||
|
||||
return new DbLocation(rs.getLong(ID), OwnerRef.of(rs), rs.getLong(PARENT_LOCATION_ID), rs.getString(NAME),rs.getString(DESCRIPTION));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user