• Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple value with persistence API

 
Wal Samaad
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone show me how to persist multiple values into a database using the persistence API.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You simply create an object that has multiple values and save the object. All the associated values get saved as well.

Here's some sample code from my website:


Persisting Data with Hibernate

-Cameron McKenzie
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!