1,106 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
21
views
Using the data of the children to order with eBean fails
I have two ebean object in Playframework 3.0.5 and ebean 3.0.0.
MessageThread, which has MessageItems:
In MessageThread:
@OrderBy("addDate ASC")
@OneToMany(mappedBy = "thread", ...
0
votes
0
answers
35
views
Maven, how to create a module using source code?
I want to study third-party library source code(ebean), I want to modify some source code.
So I downloaded the source code, and create a module using it. (Not imported via dependency)
But what are the ...
1
vote
0
answers
62
views
Ebeans not generating tables in localhosted MySQL File
I'm developing a Minecraft PaperMC plugin using Ebean ORM (v15.1.1) with a MySQL database and IntelliJ for development. However, I keep encountering the following error:
What I’m trying to achieve:
I’...
1
vote
1
answer
3k
views
Kotlin's kaptGenerateStubsKotlin fails every other day
I have been tearing my hair out maintaining a project I wrote in Kotlin.
Basically - it uses EBean, which itself uses Kapt to generate some code.
The problem I have is that, literally, every other ...
0
votes
0
answers
137
views
Runtime exception "Unable to determine the appropriate ebean platform given database product name" using ebean 13.25.2-jakarta
I have a project using ebean 13.25.2-jakarta. I've included
io.ebean.ebean
io.ebean.ebean-ddl-generator
I'm configuring ebean programmatically
dataSourceConfig.setUsername(configService.get(...
0
votes
1
answer
67
views
unit test for service layer when using springboot ebean
env:Springboot ebean as orm
service layer code like below
@Service
@RequiredArgsConstructor
public class UserInfoServiceImpl implements UserInfoService {
private final UserInfoRepository ...
0
votes
2
answers
170
views
How to enforce a unique constraint on an element collection with Ebean
I've been trying variations on this, but I can't seem to get Ebean to recognize the constraint.
@ElementCollection
@CollectionTable(schema = "participants", joinColumns = @JoinColumn(...
1
vote
0
answers
91
views
Do a CompletionStage inside a CompletionStage
We have an internal API that executes the code in a lambda and returns a Boolean result in a CompleteStage:
private CompletionStage<Boolean> foo1() {
return internalAPI(param -> {
...
0
votes
0
answers
64
views
Dynamic databases in play framework
In the play documentation we can find how configure a database connection in the application.conf file such as
default.driver=org.postgresql.Driver
default.url="jdbc:postgresql://urlConnection&...
1
vote
1
answer
293
views
SpiRawSqlService not found setting up EBean in a Spigot plugin
Overview
I set up a github repo for this question to provide as much of the boiled down environment as possible.
My goal is to set up ebean ORM for database manangement from a Paper Minecraft plugin. ...
0
votes
0
answers
701
views
Using connection pool for read only DB instance which skips COMMIT
My current setup:
Java backend
Ebean
HikariCP
RDS Aurora MySQL v5.7 having writer and reader nodes
We use reader RDS node for business operations which only require read access to the database. This ...
0
votes
1
answer
174
views
Is it possible to have optional property in ebean ORM
When using Ebean, let's say, I have the ORM class as follows:
@Entity
public class Student {
@id
private UUID id;
String age;
}
Assuming that the age is a nullable column in the ...
0
votes
1
answer
117
views
Why data inside database is deleting after running ebean.mysqldatabase.ddl.run=true?
I'm making project using SpringBoot and Ebean orm with MySql Database. I have created few tables in database. Now I wanted to add the column in existing table without deleting past records which is ...
0
votes
1
answer
87
views
Temporary backup tables, if process fails restore
I have an application that periodically downloads a large XML and saves it into a database. What is the proper way to deal with failure during the insertion process. Current process:
download XML
...
0
votes
1
answer
208
views
Subquery in ebean
I am faced with the problem of forming subqueries in ebean. I need to compose a query that is similar to the following sql:
select sum(money), count(name) from (
select owr."clientName" ...