preparing to store new locations

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-20 23:17:54 +02:00
parent 6158fb2630
commit 4e9c8c0f69
5 changed files with 59 additions and 9 deletions

View File

@@ -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));
}