My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Monday, November 24, 2014

Externalize Named Queries in JPA


Externalize Named Queries in JPA 


Main XML file 



 
  java:/someDS
  
  META-INF/myproject/sample.xml
        



sample.xml (having named query)




 
  
   SELECT 
    website
   FROM 
    Website website
   WHERE
    website.userId = :userId
  
 
 
  
   ...
  
 


No comments :