Questions tagged [micronaut-data]
210 questions
0
votes
1 answer
With Micronaut Data JDBC, how do I transform a value for WHERE clauses?
I'm using Micronaut Data JDBC 1.1.3 with a MySQL 8.0 database. I'd like to have my id columns use a BINARY(16) storage and use BIN_TO_UUID()/UUID_TO_BIN() to convert the values. I though I could do this with Micronaut Data's @ColumnTransformer,…

skagedal
- 2,323
- 23
- 34
0
votes
1 answer
micronaut-data : multiple data sources
I have multiple databases in yml, how to get country specific repository? i am getting country name at runtime and based on country name i need to do operation with that country database, with single database it taking default database repository…

2787184
- 3,749
- 10
- 47
- 81
0
votes
1 answer
micronaut-data and composite key mapping
I have an entity with a composite key
@Entity
data class Page(
@EmbeddedId
val pageId : PageId,
...
)
@Embeddable
data class PageId (
@Column(name = "id")
val id: UUID,
@Column(name = "is_published")
val isPublished: Boolean
)
But I…

Tilman Rossmy
- 181
- 2
- 10
0
votes
0 answers
How to intercept when a JDBC connection is being taken out and returned to the JDBC connection pool?
I'm trying to figure out how to intercept the actions of a JDBC connection being taken out from the JDBC connection pool, and just before it's being returned.

Sean LeBlanc
- 185
- 2
- 12
0
votes
1 answer
running micronaut 1.3.3 try to create simple app getting hibernate error
I accidently put hbm2ddl.auto to true. now i can't get rid of it. I changed properties in application.properties file no luck.
22:20:14.166 [main] ERROR io.micronaut.runtime.Micronaut - Error starting Micronaut server: Bean definition…

Bikram Singh
- 1
- 1
0
votes
1 answer
In Micronaut, how do I use plain jdbc row mapping? (kick out ORM-Hibernate)
How to do plain jdbc row mapping in Micronaut ? (kick out ORM-Hibernate)
a way to do parameterized, prepared statement.
a custom mapping mechanism.
I want to avoid Hibernate/ORM.

Espresso
- 5,378
- 4
- 35
- 66
0
votes
0 answers
Micronaut with Oracle and jpa
I am trying to use micronaut with oracle and jpa (come up with hello world application) but hibernate session factory instantiation is throwing an exception
it appears that one of the sequence is out of range. but my application or entity is not…

Ashish Garg
- 101
- 1
- 7
0
votes
0 answers
Does micronaut support loading Enum Fields as Bean Definitions?
In my micronaut application I have various Enum fields that contain an annotation (AnnotationA). When this annotation is placed on a Bean class (not an enum), I can use the following statement to retrieve all of the Bean definitions containing this…

Ronnie Phelps
- 83
- 1
- 11
0
votes
2 answers
Connecting to BigQuery with micronaut-data
We are wondering what might be the best way to use micronaut-data to connect to BigQuery. BigQuery has a rather poor JDBC support and in addition it does not support transactions while micronaut-data enforces transactions.
Is there a way in the…

Chris
- 7,675
- 8
- 51
- 101
0
votes
1 answer
Micronuat Data Entity findAll order by createddate desc
I using micronuat Data with JPA to access the MySQL table. findall return all the data, now I want sort the output by createdat datetime filed.
@Get("/")
List all() {
return bookRepository.findAll()
}
How to sort this value by createdat…

sfgroups
- 18,151
- 28
- 132
- 204
-1
votes
1 answer
Micronaut Mongo DB Entity nested collection mapping
I've tried to declare data entities for my mongo db and all I got is a null in a nested (via reference) collection.
That's what I want to see:
mongodb document reference
similar in spring
raw DBRef (manually filled using mongo db compass)
My tries…

frynet
- 1
- 2
-1
votes
2 answers
How to use Hibernate lazy loading and reactive streams?
I am currently building a REST service with Micronaut Data. I have defined two JPA entities, bounded by a bidirectional @OneToMany relationship, and lazy loading.
@Entity
@Getter
@Setter
public class ScoringEntity {
@Id
private String id;
…

nquincampoix
- 508
- 1
- 4
- 17
-1
votes
1 answer
Problem with annotation procesor and Micronaut 2.0 transaction
I have a problem using the default transaction management that comes with Micronaut 2.0.
I know that I'm missing something but I don't know what.
I created a small example project here.
When I try to run the Application class I get the following…

Andres Cuevas
- 9
- 5
-2
votes
1 answer
Is there a way to create the Entity classes in Micronaut from an existing SQL database?
I could not find any documentation on this topic. For example, I can create the model classes in Eclipse using the JPA plugin.

nimble
- 1
- 1
-2
votes
2 answers
Are Spring/Micronaut repository tests necessary
Hello stackoverflow community.
I had an argument at work regarding if repository tests for spring-data JPA (or the Micronaut version) are necessary at all.
This would be my setup of the application:
@Controller ➡ @Service/@Sigleton ➡…

jaecktec
- 440
- 4
- 15