Hilla AutoCrud mit MongoDB

Hey everyone :wave:,
I just wanted to let you know, that I created an example Hilla app, that uses the great AutoCrud component together with MongoDB using the CrudService<T, ID> interface introduced in Hilla 2.5. You can check out the code at GitHub and read the corresponding blog post, if you like.

3 Likes

Awesome. Thanks for sharing!

Hi René,

This is very helpful! Is there any way to do the same, while using Spring’s built-in repositories (e.g. MongoRepository).

Having to circumvent the MongoRepository seems like it will lead to extraneous boilerplate code over time.

Hi Jaroslaw,
I don’t think you can use the built-in MongoRepository together with AutoCrud. You need a repo/service that implements the CrudService<T> interface as described in the blog post and in the docs: https://vaadin.com/docs/latest/components/auto-crud#implementing-a-custom-service.