Submit Links | Latest Links | Login (want to submit links for DLinks? send a mail to krishnas@javabeat.net)

Native Queries with Hibernate Annotations

hibernate java5 Comments
  • 0 votes
Hibernate EntityManager implements the programming interfaces and lifecycle rules as defined by the EJB3 persistence specification. Together with Hibernate Annotations, this wrapper implements a complete (and standalone) EJB3 persistence solution on top of the mature Hibernate core. In this post I will describe how map native queries (plain SQL) using Hibernate Annotations. Hibernate Annotations supports the use of Native queries through the @NamedNativeQuery and the @SqlResultSetMapping annotations.... more »

Securing EJB 3.0 Beans

ejb java5 Comments
  • 0 votes
The Java EE 5 Security services are provided by the container and can be implemented using declarative or programmatic techniques. In addition to declarative and programmatic ways to implement security (in J2EE), Java EE 5 supports the use of metadata annotations for security. This post will describe how to secure EJB 3.0 beans. The post consists of a simple EJB, with a web client. In order to run the example, follow these steps.... more »

Integrating Struts 2.0 and tiles

struts java5 Comments
  • 0 votes
I am currently evaluating some web frameworks for a pet project and was trying to implement Struts 2 with tiles. Neither the Sturts 2 website, nor the tiles website gave an easy way to integrated Struts 2 and tiles. It took me a while to get them to work together. This post describes a way I figured out how to integrate Struts 2 with tiles. Struts 2 provides a plugin for integrating tiles 2. This plugin is included in the complete bundle (struts-2.x.x.x-all.zip). The following are are the steps needed to integrate struts2 with tiles.... more »

Struts 2 Validation : Annotations

struts java5 Comments
  • 0 votes
In a previous post, I described how to use validations in Struts 2, using XML validation rules. This post will show how to use Annotation based validation in Struts 2. For this example I used the add transaction part of google's portfolio manager (noticed that they do not have validations over there). Struts 2 provides a number of validators for XML based validation rules. All of them have respective annotations defined and can be used in place of XML validation rules. In the example, we will use the @RequiredStringValidator, @RegexFieldValidator and also see how to parameterize messages when using annotations.... more »

http://javawave.blogspot.com/2008/04/quartz-job-scheduler-part-ii-example.html

netbeans java java5 Comments
  • 0 votes
http://javawave.blogspot.com/2008/04/quartz-job-scheduler-part-ii-example.html... more »

Quartz Job Scheduler -- Part 1 (Setting up development project in Netbeans 6.1 beta)

netbeans java java5 Comments
  • 0 votes
Quartz Job Scheduler -- Part 1 (Setting up development project in Netbeans 6.1 beta)... more »

Howto generate Hibernate POJO and mapping files using ant from a db schema

hibernate java java5 Comments
  • 0 votes
This is the ant task I’m using to generate POJO and mapping files from a DB Schema (mysql).... more »

Java Collections and Iterators

java java5 Comments
  • 0 votes
Do you shy away from using the Java collection framework? Do you find the unwieldy notation puts you off using the classes in this framework? If so, you may be writing unnecessary Java code. Stephen Morris shows you how easy and efficient the collection framework is to use.... more »

My experience while writing an annotation processor - part I

java5 Comments
  • 0 votes
Recently I was writing an annotation processor that would generate a persistence.xml file when I compile my JPA entity classes. If you are a Java Persistence API user, then you may actually be interested in that annotation processor. OK, enough of shameless self promotion. Coming to the issue I want to discuss in this blog... While writing the annotation processor, certain things did not happen as per my expectation. I will share them with you so that you won't waste time as I did. All those issues are generic in nature.... more »

Annotation based configuration in Spring

spring java java5 Comments
  • 0 votes
It is now possible to configure Spring's dependency injection with annotations. This means that annotations can be used in Spring to mark fields, methods and classes that need dependency injection. Spring also supports auto-wiring of the bean dependencies, that is, resolving the collaborating beans by inspecting the contents of the BeanFactory. Now there are annotations that can be used to indicate fields that are to be auto-wired. Furthermore, auto-detection of annotated components in the classpath is also supported now. When these capabilities are combined, the amount of configuration and dependency mapping in the Spring configuration files is reduced drastically.... more »
First 1 2 3
JavaBeat Home

Candidates for 646-204 can get ready for this test by taking the CSE Cisco Sales Expert course. 642-901 candidates utilize advanced IP addressing as well as routing in applying scalability for Cisco ISR routers linked to LANs plus WANs. CompTIA A+ 220-601 provides individuals the capability to develop their careers in a specific area, and employers the suppleness to select the exam combination that best suits their needs. Candidates for 70-620 should have experience of dealing with the issues related to network connectivity, desktop operating systems, in addition to other applications.