How to persist LIsts of entities using JPA bindings in SwitchYard ?

Solution Unverified - Updated -

Issue

  • While working with JPA binding in SwitchYard, there are requirements for persisting java.util.List of some entities into database. However, modifying the service interface of the camel-jpa-binding quickstart does not seem to work.
    e.g. changing the existing service interface method from:

    void storeGreeting(Greet event);
    

    to this method instead:

    void storeGreeting(java.util.List<Greet> event);
    
  • Does the JPA binding of SwitchYard supports Arrays of entities or collection of entities?

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.