Submitted by sneha on Sun, 04/15/2018 - 05:52
We will write a simple hibernate application to get started with hibernate.
Before starting, you should: [node:read-more:link]
Submitted by sneha on Sun, 04/15/2018 - 05:48
Submitted by sneha on Mon, 11/02/2015 - 04:37
We will download and install Java EE 7 SDK which comes with GlassFish Open Source Edition 4 (currently 4.1.1)and then configure eclipse to deploy Java EE applications directly to GlassFish Server. You can download the latest Java EE 7 SDK from http://www.oracle.com/technetwork/java/javaee/downloads/index.html. You can also directly download the latest commercially supported GlassFish Server distribution (currently 3.1.2.2) from the same link. [node:read-more:link]
Submitted by sneha on Mon, 10/26/2015 - 09:22
Submitted by sneha on Mon, 10/26/2015 - 08:46
We can have queries saved with a name and later we can retrieve them simply using that name. We use @NamedQuery annotation to declare a named query. We can also have a named query for native sql. For native SQL we use the annotation @NamedNativeQuery annotation. This is one of the important advantages of having a named query: you can write native SQL. You can retrieve a Query object from a saved query name (hql and native named query) using session.getNamedQuery method. [node:read-more:link]