Questions tagged [ebean]
Ebean is an open source Object Relational Mapping tool. It's goal is to provide a simpler alternative to JPA (Java Persistence API) implementations such as Hibernate and Eclipselink.
ebean
1,109
questions
0
votes
0
answers
5
views
Ebean: use dynamic entity class in runtime for bulk update query?
What's the best approach in Ebean to execute a generalized (on a BaseEntity) bulk update query? I.e. something similar to the following Spring Data example:
update #{#entityName} e
set e.deletedDate = ...
0
votes
0
answers
28
views
Play Framework Ebean Firebird
I have a project in Play 2.8.18 but now I want to update it to Play 3.x.
There is a new version of Ebean 8.xx but it looks like it doesn't support Firebird 2.5
I'm testing using the "play-samples-...
0
votes
1
answer
187
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
31
views
ebean check if primary database connection is down and connect to new data source
I have a rest springboot rest service that connects to an oracle database using ebean in the ORM layer that captures login and transaction data and writes them in "audit" database tables ...
0
votes
0
answers
73
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
0
answers
59
views
Play framework + Java +Ebean models.Donation is NOT an Entity Bean registered with this server?
I am usingPlay Framework 3, with Java , Ebean. I am trying to use models using ebean, but I am getting the following error everytime:
[PersistenceException: models.Donation is NOT an Entity Bean ...
0
votes
1
answer
35
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
89
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
69
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
51
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
191
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
454
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
129
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
95
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
80
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
...