org.glassfish.jersey.examples.managedbeans.resources
Class Widget

java.lang.Object
  extended by org.glassfish.jersey.examples.managedbeans.resources.Widget
All Implemented Interfaces:
Serializable

public class Widget
extends Object
implements Serializable

Simple JPA entity made accessible via ManagedBeanSingletonResource.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)
See Also:
Serialized Form

Constructor Summary
Widget()
          No-arg constructor to make JPA happy.
Widget(int id, String val)
          Create a new widget with given id and value.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Widget

public Widget()
No-arg constructor to make JPA happy.


Widget

public Widget(int id,
              String val)
Create a new widget with given id and value.

Parameters:
id - widget id
val - widget value


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.