jpa

Why you should never use getSingleResult() in JPA

As long as I’m using JPA I notice that the use of getSingleResult and getResultList is often confused. In the javadoc there is no clear specification of what to use. getResultList() Execute a SELECT query and return the query results as an untyped List. getSingleResult() Execute a SELECT query that returns a single untyped result.… Continue reading Why you should never use getSingleResult() in JPA

spring

Spring Tutorials

pring Integration 2 Spring Integration 2: Integrating RabbitMQ and Web Service Spring Integration 2: Integrating a JDBC and WS System Spring REST Spring 3: REST Web Service Provider and Client Tutorial (Part 1) Spring 3: REST Web Service Provider and Client Tutorial (Part 2) Spring Data and MongoDB Spring Data – MongoDB (Revision for 1.0.0.M2)… Continue reading Spring Tutorials

wordpress

WordPress Recent Posts from specific category

here cat=1 is our category ID number and showposts=10 is our recent posts from specific category count. When you add this code to your sidebar.php file, you have to check your specific category ID from you admin panel, manage, categories. global $post; $recent = new WP_Query(“cat=4&showposts=10”); while ($recent->have_posts()) { $recent->the_post(); art_post_wrapper( array( ‘id’ => art_get_post_id(),… Continue reading WordPress Recent Posts from specific category