Giter Club home page Giter Club logo

Comments (6)

tomcgn avatar tomcgn commented on May 25, 2024 1

Damiens Spring Data JPA datatables work great!
Especially if one links jquery.spring-friendly.js properly in the containing HTML as described e.g. here 😄

from spring-data-jpa-datatables.

diorndk avatar diorndk commented on May 25, 2024 1

Hey Damien @darrachequesne,

it's work like a charm now! thanks a lot for your help!!

from spring-data-jpa-datatables.

darrachequesne avatar darrachequesne commented on May 25, 2024

That exception javax.persistence.RollbackException is indeed not really helpful.

Yes, the search feature should work, either by global search search[value] or per-column search columns[i][search][value] in the payload sent to the server (described there).

Note: the default input field on the right of the table should trigger a global search.

I'm afraid I'll need a bit more to help you:

  • the payload sent to the server
  • the definition of the DataTable itself on the client-side, if possible

If you don't want to/can't share this here, maybe could you contact me by mail?

Cheers!

from spring-data-jpa-datatables.

darrachequesne avatar darrachequesne commented on May 25, 2024

Great news 😄 !

I was wondering whether your columns were @OneToMany or @ManyToMany relationships, since it involves a bit more work (the data should be something like linkedentity.attribute, see example there), but if it works for you, that's great!

from spring-data-jpa-datatables.

diorndk avatar diorndk commented on May 25, 2024

Great news 😄 !

I was wondering whether your columns were @OneToMany or @ManyToMany relationships, since it involves a bit more work (the data should be something like linkedentity.attribute, see example there), but if it works for you, that's great!

Hey Damien,

it seems the link you've given is not working now. can you provide a new link? since I'm working with @OneToMany and @ManyToMany relationship now with data table

Thanks

from spring-data-jpa-datatables.

darrachequesne avatar darrachequesne commented on May 25, 2024

@diorndk you are right!

The example project is here: https://github.com/darrachequesne/spring-data-jpa-datatables-sample

And the lines in question: https://github.com/darrachequesne/spring-data-jpa-datatables-sample/blob/f9a10c2d252ac0ecae978fe17f66ebcef305d82d/src/main/resources/static/index.html#L82-L85

from spring-data-jpa-datatables.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.