Solved

call view through hibernate using jpa annotations

Posted on 2011-03-10
1
913 Views
Last Modified: 2012-05-11
I need to call database view through hibernate using jpa annotations
0
Comment
Question by:Rocking
1 Comment
 
LVL 19

Accepted Solution

by:
Jim Cakalic earned 50 total points
ID: 35172348
Use the NamedNativeQuery annotation with a SQLResultSetMapping annotation if necessary to map the returned columns to your object. See the page below for examples. Plenty more if you google the two annotations.
    http://en.wikibooks.org/wiki/Java_Persistence/Querying#Native_SQL_Queries

Regards,
Jim
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 20
Error trying to install RTMT Win7 5 60
aws pricing 2 46
jsp insert to database example 2 24
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question