@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
/* © SRSoftware 2025 */
package de.srsoftware.umbrella.core.model ;
import static de.srsoftware.tools.Optionals.nullIfEmpty ;
import static de.srsoftware.umbrella.core.Constants.* ;
import static de.srsoftware.umbrella.core.Util.markdown ;
@ -48,7 +49,8 @@ public record Project(long id, String name, String description, Status status, L
@@ -48,7 +49,8 @@ public record Project(long id, String name, String description, Status status, L
public static Project of ( ResultSet rs ) throws SQLException {
return new Project ( rs . getLong ( ID ) , rs . getString ( NAME ) , rs . getString ( DESCRIPTION ) , Status . of ( rs . getInt ( STATUS ) ) , rs . getLong ( COMPANY_ID ) , rs . getBoolean ( SHOW_CLOSED ) , new ArrayList < > ( ) ) ;
var companyId = rs . getLong ( COMPANY_ID ) ;
return new Project ( rs . getLong ( ID ) , rs . getString ( NAME ) , rs . getString ( DESCRIPTION ) , Status . of ( rs . getInt ( STATUS ) ) , companyId = = 0 ? null : companyId , rs . getBoolean ( SHOW_CLOSED ) , new ArrayList < > ( ) ) ;
}
@Override