Replies: 4 comments 1 reply
-
Hi @studioitc, |
Beta Was this translation helpful? Give feedback.
-
same problem here. Did you guys found a solution? |
Beta Was this translation helpful? Give feedback.
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
-
Hi there. I've started a similar thread https://stackoverflow.com/questions/78101824/persist-multiple-entities-with-reactive-quarkus-and-hibernate-panache . I would appreciate if anyone with a solution could reply and share to the community. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
which is the best way to persist a list of entities within Panache.withTransaction?
I'm trying to persist a list of string coming from a file.
List<Uni<MyEntity>> list = new ArrayList<>();
try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
String line;
while ((line = br.readLine()) != null) {
list.add(new MyEntity(null, line).persist());
}
}
Now i suppose i need to combine somehow the list, i've tried with
Uni.combine().all().unis(list).combinedWith(v -> null).onItem()
but nothing is stored on DB.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions