Class Widget
- java.lang.Object
-
- org.glassfish.jersey.examples.managedbeans.resources.Widget
-
- All Implemented Interfaces:
Serializable
@Entity public class Widget extends Object implements Serializable
Simple JPA entity made accessible viaManagedBeanSingletonResource.- Author:
- Jakub Podlesak
- See Also:
- Serialized Form
-
-
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 idval- widget value
-
-