Questions tagged [micronaut-data]
210 questions
3
votes
1 answer
How to get DB sequence value when using micronaut-data with JDBC
I'm using micronaut-data with JDBC in on my application(no hibernate)
I need to generate my primary key value using Oracle DB sequences
As per their official doc(https://micronaut-projects.github.io/micronaut-data/1.0.x/guide/#jdbc) Section:9.1.4.1…

Mohit Gupta
- 66
- 6
2
votes
1 answer
Micronaut Data JDBC: How to map a one-to-many relation using enums?
I would like to map a unidirectional one-to-many relation, using Micronaut Data annotations. Considering the object and database models described below, how to map that using Micronaut annotations?
Object model:
import…

Alexandre V.
- 416
- 5
- 9
2
votes
1 answer
TransactionalEventListener not invoked in @MicronautTest
Problem description
While system end-to-end tests are invoking methods annotated with @TransactionalEventListener, I'm not able to invoke the same methods in narrower tests annotated with @MicronautTest.
I've tested numerous variants with both…

Roar S.
- 8,103
- 1
- 15
- 37
2
votes
1 answer
How to save a JsonNode param (micronaut + kotlin) as a jsonb in postgres database
I'm trying to save an entity that has a JsonNode attribute and has to be converted to jsonb to be stores in a postgres database.
This is the database table:
CREATE TABLE IF NOT EXISTS configuration_data (
id SERIAL NOT NULL PRIMARY KEY,
…

Lorena
- 93
- 6
2
votes
2 answers
Is Spring Data data-safe from/to 3rd party queries?
I am confused about Spring Data/Hibernate's black-box persistence-related stuff I read about - mostly query caching and flushing.
As far as I understand:
Caching queries:
Spring data does not run queries in a transaction directly on a database, but…

milkamar
- 443
- 6
- 16
2
votes
0 answers
Commit/rollback transactions manually with multiple datasources in Micronaut
I need to commit/rollback transactions manually with multiple datasources in micronaut-data. But when commits second transaction(db2TransactionManager.commit(db2Transaction)) it throws below exception. How can I solve this problem or is there any…

nikli
- 2,281
- 2
- 24
- 38
2
votes
1 answer
Validate model from other module with micronaut gives "No bean introspection present."
When I try to send object in body of POST method to micronaut application I get:
model: Cannot validate com.example.Model. No bean introspection present. Please add @Introspected to the class and ensure Micronaut annotation processing is…

Daniel Stefanik
- 23
- 5
2
votes
1 answer
Micronaut data-jpa - one-to-many - Child entity don't have parent reference
I'm using micronaut-data-hibernate-jpa and I have one-to-many relation Parent-Children.
I'm trying to save parent entity with list of children by save operation on parent repository. Parent and children are saved but child don't have parent id saved…

mikolaj.a.wozniak
- 23
- 4
2
votes
0 answers
Issue with GormEntity in Micronaut 3.0.3
I have a simple micronaut 3.0.3 application built with hibernate-gorm.
I get the following error when attempting to send a GET request like this http://localhost:8080/?commentId=1
Failed to convert argument [command] for value [null] due to:…

maun
- 134
- 1
- 1
- 13
2
votes
2 answers
Message: Entities not found for JPA configuration: 'default' within packages [example.micronaut]
was trying micronaut with this example from there official website but got the following error.
Message: Entities not found for JPA configuration: 'default' within packages [example.micronaut]. Check that you have correctly specified a package…

vijay pandey
- 93
- 1
- 8
2
votes
0 answers
Hypersistence Micronaut Postgres daterange issue
In my project I need to persist a range of dates into a Postgres database. For this I decided to use the hibernate-types-52 dependency, but when I try to persist anything I get the following error:
Can't infer the SQL type to use for an instance…

maun
- 134
- 1
- 1
- 13
2
votes
1 answer
Micronaut JDBC Repository - Exception trying to execute query
I'm new to working with Micronaut Recently got a new job at a company who use it.
@JdbcRepository()
public interface UserDataRepository extends CrudRepository {
...
@Query(value = "SELECT * FROM Users u " +
…

Chris
- 839
- 2
- 10
- 33
2
votes
1 answer
Java MongoClient to add a new embedded document
I have a below data type in mongodb
{
"_id" : ObjectId("60007b3abc54b5305e9f5601"),
"description" : "Mens",
"name" : "Men"
}
Since the above data is already an existing data, Now using the MongoClient I want to insert the new embedded…

San Jaisy
- 15,327
- 34
- 171
- 290
2
votes
1 answer
What is micronaut's alternative for "JpaSpecificationExecutor"?
I want dynamic filter queries. Example
/api/users?name=xyz
/api/users?name=xyz&email=abc
With spring boot it was possible using JpaSpecificationExecutor, where I could pass custom "Specification". How to do this using micronaut-data?

AmitB10
- 425
- 6
- 16
2
votes
1 answer
Cannot validate view.model.product.ProductSearchCriteria. No bean introspection present. Please add @Introspected to the class
Custom validator issue No bean introspection present. Please add @Introspected to the class and ensure Micronaut annotation processing is enabled not working Micronaut 2.2.1
@Retention(RetentionPolicy.RUNTIME)
@Target({ METHOD, FIELD,…

San Jaisy
- 15,327
- 34
- 171
- 290