Questions tagged [micronaut-data]
210 questions
1
vote
0 answers
Micronaut with Hibernate Spatial types deserialization
The essence of the question is to serialize and deserialize the Geometry class from Hibernate Spatial in the Micronaut framework. This is how the field is represented in my entity.
import org.locationtech.jts.geom.Point;
...
@Column(columnDefinition…

unvise
- 11
- 2
1
vote
1 answer
How to implement schema based multitenancy with micronaut
I'm starting to build a new webapp, it currently has an AuthenticationProvider which checks a user and password match what's in a database table. Its session based.
Currently micronaut just seems to use the public schema (I'm on postgres).
I've…

rich
- 18,987
- 11
- 75
- 101
1
vote
0 answers
Micronaut jpa query update is not working in the test
In a micronaut project I have this entity:
@AllArgsConstructor
@Getter
@Setter
@Entity
@Table(name = "product_client_systems")
@DynamicUpdate
public class ProductClientSystem implements Serializable {
@EmbeddedId
private…

Rafael
- 185
- 1
- 4
- 14
1
vote
0 answers
Micronaut Data MonogDB Reactive Transactions
I am looking for guidance on implementation transactions when using Micronaut Data MongoDB (Reactive)
Below I have given code snippets from what I am trying to implement:
Data dependencies…
1
vote
1 answer
Error column specified more than once when inserting an entity with EmbeddedId using Micronaut Data
I'm using Micronaut Data JDBC and I'm facing an error. I have this entity:
@MappedEntity(value = "document_metadata")
@AllArgsConstructor
@EqualsAndHashCode
public class DocumentMetadataJDBCEntity implements DocumentMetadata {
@Embeddable
…

dcalap
- 1,048
- 2
- 13
- 37
1
vote
1 answer
How to use test-resources in micronaut project with postgres, flyway an jooq
I generated new micronaut project with cli:
mn create-app --lang java check-test-resources --features data,flyway,postgres,test-resources,jooq
This is my build.gradle:
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
…

Błażej Gruszka
- 21
- 3
1
vote
1 answer
Persist String variable to Lob with Micronaut Data JDBC
I'm using Micronaut Data JDBC and I have an issue.
I have a @MappedEntity for JDBC with a content field that is a String used in a JPA context as follows:
@Lob
@Column(name = "content")
private String content;
I need to migrate this code to JDBC…

dcalap
- 1,048
- 2
- 13
- 37
1
vote
0 answers
Register / Configure DataSource on demand in Micronaut - Data
I am building a framework for some multi tenant application and it needs some dynamism with respect to data sources.
I did check micronaut-data 3.9 and 4.0 rc builds and found that the team has introduced TenantDataSourceResolver and…

jatanp
- 3,982
- 4
- 40
- 46
1
vote
0 answers
junit test fails : data jpa query not working with H2 database
I'am using micronaut data jpa and the query works fine with oracle but not with H2 database.
here is the query :
delete from myTable
where (some conditions)
AND (to_char(startDate, 'DY', 'NLS_DATE_LANGUAGE = ENGLISH') IN ('MON', 'TUE', 'WED', 'THU',…

BOS
- 13
- 3
1
vote
0 answers
R2dbc transactions not working properly when using coroutines
When using micronaut-data-r2dbc with coroutines the transaction context does not seems to propagate correctly all the times, causing a NoTransactionException.
@Transactional(Transactional.TxType.MANDATORY)
@R2dbcRepository(dialect =…

Filipe Nascimento
- 11
- 1
1
vote
2 answers
Can a method annotated with @Transactional be wrapped inside another method annotated with the same?
I'm developing basic CRUD APIs using Micronaut, wherein a service (let's call this #1) calls another service (let's call this #2) which in turns calls the save method of the CrudRepository.
To define atomic work units, I'm using the @Transactional…

Gourang Abani
- 11
- 1
1
vote
0 answers
Writing different objects with same values to a table with JPA and Hibernate
Sorry for the long explanation in advance, I have been searching for similar issues to no avail.
I have two Tables, let's call them Table A and Table B
A has a foreign key Association with B i.e. Table B's tB_id value is a foreign key in Table…

kartikay101
- 73
- 6
1
vote
0 answers
rollback hibernate reactive transaction
Is it possible to rollback the hibernate reactive transaction when using micronaut data hibernate reactive? Let's say we are writing a test to create a user in the db. We would like to rollback that transaction after the test completes.
Annotating…

JerryThePineapple
- 63
- 8
1
vote
2 answers
How to create a Micronaut project with JPA Entity from external classes from another jar
I have a Micronaut project, and I'm trying to build the project with my external Entity classes which are in Spring JPA added on dependency in pom.xml, but I'm always having an error: Caused by:…

Miguel Jr. Bermundo
- 71
- 5
1
vote
1 answer
Problem with bean instantiation using @Repository micronaut data annotation
I'm approaching Micronaut framework to create a program to interact with a database.
I'm new to gradle project configuration etc. so it could be a problem related to this.
I divided my project in two modules: main(where the Application class is) and…

ale9600
- 11
- 1