Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
EasyBeans Copyright (C) 2006 Bull S.A.S. Contact: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -------------------------------------------------------------------------- $Id: 1970 2007-10-16 11:49:25Z benoitf $ --------------------------------------------------------------------------
package org.ow2.easybeans.examples.entitybean;
Simple stateless bean acting as session facade bean.

Florent Benoit
public class SessionFacade implements SessionFacadeRemote {

Entity manager used by this session bean.
    private EntityManager entityManager = null;

Adds an employee.

id of the employee
name of the employee
    public void addEmployee(final int idfinal String name) {
        Employee employee = new Employee();

Finds the Employee with its given id.

id to find the employee
employee associated to the given id
   public Employee findEmployee(final int id) {
       return .find(Employee.class, Integer.valueOf(id));
New to GrepCode? Check out our FAQ X