Skip to content

Commit 38383e4

Browse files
Fix extra space in json list serialization (#57)
Al intentar realizar test de aceptacion: CoursesCountergetControllerShould - new CourseCreatedDomainEvent("8f34bc99-e0e2-4296-a008-75f51f03aeb4", "DDD en Java", "7 days"). Este caso peta porque una vez ha deserializado el "value" no queda ningun extra space. Saludos
1 parent f53b34b commit 38383e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/main/tv/codely/shared/infrastructure/hibernate/JsonListType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void nullSafeSet(
6565
}
6666

6767
public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
68-
String value = rs.getString(names[0]).replace("\"value\"", "").replace("{: ", "").replace("}", "");
68+
String value = rs.getString(names[0]).replace("\"value\"", "").replace("{:", "").replace("}", "");
6969
Object result = null;
7070
if (valueType == null) {
7171
throw new HibernateException("Value type not set.");

0 commit comments

Comments
 (0)