(C) Copyright 2005,2009 The Apache Software Foundation. All rights reserved. ----------------------------------------------------------------------------- This sample demonstrates using Bean Validation with the Java Persistence API. It has two parts: - The first (customers-ejb) shows a JPA Entity Bean. - The second (customers-war) is a simple web ui that uses the JPA Entity Bean. Note: The application server environment must provide the Servlet 2.5, EJB 3.0, JTA 1.1 and JPA 2.0 Spec API and implementations. BUILD ----- Refer to %SAMPLE_HOME%/readme.txt for build instructions. INSTALL ------- Start the Java EE 5 or later application server if it is not already running. Create the required database. Deploy the built application EAR: customers-ear/target/customers-ear-2.0.0-SNAPSHOT.ear RUN --- 1. Open the following link in a web browser: http://localhost:8080/customers/ 2. Select the "Add Customer" link, and enter a sample customer. For example: Customer ID = 10 Full name = Barney Rubble SS Number = 123-45-6789 Birth Date: 01/02/2003 Address = Anywhere Annual Salary = 50000 Loan Amount = 10000