Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
c91da393
Commit
c91da393
authored
Nov 11, 2025
by
Luna Riegel
Browse files
Fix: Use correct error collection function
parent
abd380e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/DatabaseHandler.java
View file @
c91da393
...
@@ -98,7 +98,7 @@ public class DatabaseHandler {
...
@@ -98,7 +98,7 @@ public class DatabaseHandler {
ps
.
setString
(
1
,
co
.
getGmlId
().
toString
());
ps
.
setString
(
1
,
co
.
getGmlId
().
toString
());
String
bbox
=
BoundingBox
.
of
(
co
).
to2DWkt
();
String
bbox
=
BoundingBox
.
of
(
co
).
to2DWkt
();
ps
.
setString
(
2
,
bbox
);
ps
.
setString
(
2
,
bbox
);
ps
.
setBoolean
(
4
,
co
.
ha
sAnyError
());
ps
.
setBoolean
(
4
,
co
.
contain
sAnyError
());
if
(
logger
.
isDebugEnabled
())
{
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
"Attempting to serialize CityObject: {} "
,
co
);
logger
.
debug
(
"Attempting to serialize CityObject: {} "
,
co
);
...
@@ -135,7 +135,7 @@ public class DatabaseHandler {
...
@@ -135,7 +135,7 @@ public class DatabaseHandler {
if
(
logger
.
isTraceEnabled
())
{
if
(
logger
.
isTraceEnabled
())
{
logger
.
trace
(
"Attempting to serialize CityObject: {} "
,
co
);
logger
.
trace
(
"Attempting to serialize CityObject: {} "
,
co
);
}
}
ps
.
setBoolean
(
4
,
co
.
ha
sAnyError
());
ps
.
setBoolean
(
4
,
co
.
contain
sAnyError
());
try
{
try
{
byte
[]
bytes
=
SerializationUtils
.
serialize
(
co
);
byte
[]
bytes
=
SerializationUtils
.
serialize
(
co
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment