Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic Databases and user gadominas

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Databases

Let's say I have tones of named queries through all my entities. These queries have one/two or more named parameters in conditional expression. The common way to encapsulate my named query lookup in my JPADAO is something like this: Query q = %getEntityManager()%.createNamedQuery( %queryName% ); q.setParameter ("someParam", new Date ()); q.setParameter ("anotherParam", true); ... q.setParameter...
on Jan 22, 2008