How to persist LIsts of entities using JPA bindings in SwitchYard ?
Issue
-
While working with
JPA bindinginSwitchYard, there are requirements for persistingjava.util.Listof someentitiesinto database. However, modifying theservice interfaceof thecamel-jpa-bindingquickstart 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 bindingofSwitchYardsupportsArraysof 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
