Suika
Suika
JCHJava Community | Help. Code. Learn.
Created by Suika on 3/17/2025 in #java-help
IntelliJ does not recognize Maven Project
No description
5 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
or a AntwortDto
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
as far as i know i would not need a KarteikarteDto
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
@Table("karteikarte_set")
public record KarteikartenSetDto(@Id Integer id,
UUID fachId,
UUID modulFachId,
String name,
String beschreibung,
String lernIntervalle,
List<Karteikarte> karteikarten) {
}
@Table("karteikarte_set")
public record KarteikartenSetDto(@Id Integer id,
UUID fachId,
UUID modulFachId,
String name,
String beschreibung,
String lernIntervalle,
List<Karteikarte> karteikarten) {
}
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
@Repository
public class KarteikartenSetRepositoryImpl implements KarteikartenSetRepository {

private KarteikartenSetDao dao;

public KarteikartenSetRepositoryImpl(KarteikartenSetDao dao) {
this.dao = dao;
}

@Override
public KarteikarteSet save(KarteikarteSet set) {
return toKarteikartenSet(dao.save(toKarteikartenSetDto(set)));
}
@Repository
public class KarteikartenSetRepositoryImpl implements KarteikartenSetRepository {

private KarteikartenSetDao dao;

public KarteikartenSetRepositoryImpl(KarteikartenSetDao dao) {
this.dao = dao;
}

@Override
public KarteikarteSet save(KarteikarteSet set) {
return toKarteikartenSet(dao.save(toKarteikartenSetDto(set)));
}
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
created
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
No description
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
No description
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
*it
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
but doesnt and neednt
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
if i have karteikarte_set and karteikarte_set_key, then karteikarteSet would have a List<Antwort>
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
not to test
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
im only saving reference to frage
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
because its the same schema
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
i dont get an error that aussage need test_key or something
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
test has List<Frage> and Frage has List<Aussage>
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
its basically the same
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
and it does not show this error here:
create table test
(
id serial primary key,
test_titel varchar(50),
ergebnis_veroffentlicht boolean
);

create table frage(
id serial primary key,
test int references test(id),
test_key int,
titel varchar(60),
frage text,
loesung text,
punkte int,
typ varchar(20)
);

create table aussage(
id serial primary key,
frage int references frage(id),
frage_key int,
aussage varchar(200),
antwort boolean
);
create table test
(
id serial primary key,
test_titel varchar(50),
ergebnis_veroffentlicht boolean
);

create table frage(
id serial primary key,
test int references test(id),
test_key int,
titel varchar(60),
frage text,
loesung text,
punkte int,
typ varchar(20)
);

create table aussage(
id serial primary key,
frage int references frage(id),
frage_key int,
aussage varchar(200),
antwort boolean
);
63 replies
JCHJava Community | Help. Code. Learn.
Created by Suika on 2/23/2025 in #java-help
Sprign Data JDBC doesnt save my Domain
onkly to karteikarte
63 replies