Questions tagged [micronaut-data]

210 questions
0
votes
1 answer

How can I log actual queries to MongoDB with mongo java driver in Micronaut application

I am setting the mongo logger as below When I run the query using java driver in Micronuat application DEBUG org.mongodb.driver.protocol.command - Sending command '{"aggregate": "product.category",…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Micronaut-data: Unable to resolve invalid query method [update] for simple example using Kotlin & MariaDB

demo repo here Trying to get past the following error in the most basic example case: Task :kaptKotlin FAILED error: Unable to implement Repository method: UserRepository.update(Object entity). Invalid query method [update] of repository…
reverend
  • 647
  • 1
  • 9
  • 22
0
votes
0 answers

Cannot connect database using picocli and micronaut

I using picocli connect database and build native images. I using micronaut connect to postgres get some data when i excute images native build by picocli. But i have problem when using entityManager. When i using entity manager using @Inject it…
BaoTrung Tran
  • 392
  • 2
  • 6
  • 21
0
votes
1 answer

SQL find last value for multiple criterias

i have a table like that: CREATE TABLE mytable ( name varchar(255) NOT NULL, value varchar(255) NOT NULL, timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL, ); Which contains data by name,…
IEE1394
  • 1,181
  • 13
  • 33
0
votes
2 answers

Unable to mock Micronaut repository in unit test

I'm still fairly new to Micronaut. I've been struggling to figure out why I keep running into this testing error: AuthenticationHelperTest > testCreateAccount() FAILED java.lang.NullPointerException: accountRepository.save(accountModel) must not…
0
votes
1 answer

Id always null in Micronaut ReactiveStreamsCrudRepository

I'm trying to implement a reactive(r2dbc) repository in Micronaut but I'm having some problems with the data that is being queried. Those issues don't occur when using non-reactive repositories. Here's how my reactive repository…
user51010
  • 93
  • 1
  • 7
0
votes
0 answers

#Error when running Gralvm Micronaut Data

A project runs fine on the GraalVM running. But when I try to compile it to nativeimage and start it it gives me this error. [main] ERROR io.micronaut.runtime.Micronaut - Error starting Micronaut server: Bean definition…
0
votes
1 answer

Internal Server Error: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: . when calling findById, or DeleteById method

I am trying to create a sample application using micronaut framework. I have created a repository class that extends JPA repository import com.rest.micronaut.Entity.FileEntity; import io.micronaut.data.annotation.Repository; import…
Prabhat
  • 338
  • 4
  • 20
0
votes
0 answers

Error decoding JSON stream for type [T]: Unexpected token (START_OBJECT), expected END_ARRAY: Attempted to unwrap

Using the Micronaut RabbitMQ with a direct message exchange mechanism, while returning the value from the listener to the producer the JSON parser error appears as described below 08:37:58.637 [main] INFO io.micronaut.runtime.Micronaut - Startup…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Change MongoDb ObjectId _id to string in Micronaut using java

I have below Pojo class for the mongo entity public class Product { @BsonProperty("_id") @BsonId private ObjectId id; private String name; private float price; private String description; } when I fetch the mongo result as…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
0 answers

connecting to MySql causing "Connection refused no further information"

Desire: I want use VERTX in order to write/read reactively to/from MySql. Context: I want to code a Micronaut Kafka consumer which saves the event in MySql (or any database) based in no blocking approach and raactive paradigma. I tried followed…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
0 answers

org.hibernate.InstantiationException: No default constructor for entity when using org.jetbrains.kotlin.plugin.noarg

Relevant information: I am using Kotlin and Hibernate and gradle. Maybe relevant information: I am not using Spring at all. I am using Micronaut-Data Issue: When I try a simple get curl --location --request GET…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
1 answer

Query builder with MongoClient in Micronaut application

I am using the MongoClient with micronaut MongoDb. Trying to perform the query operators to create a query in mongoDb. public static Bson QueryBuilder(ProductSearchCriteria productSearchCriteria){ Bson query = null; if…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

No backing RepositoryOperations configured for repository. Check your configuration and try again

Trying to use RxJavaCrudRepository with Micronaut data with mongo db. @Repository public interface GenericRepository extends RxJavaCrudRepository { } Getting the value from repository private final GenericRepository repository; …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Does Micronaut support Hibernate OGM?

Does Micronaut support Hibernate OGM? If not, is there a way to add Hibernate OGM to Micronaut? I guess Micronaut should provide any extension mechanism like custom type mapper, converters or something like that. Thanks!
1 2 3
13
14