org.hibernate.test.annotations.manytoone
Class Color

java.lang.Object
  extended by org.hibernate.test.annotations.manytoone.Color

@Entity
public class Color
extends Object

Color showing a surrogate key and a unique constraint to ensure business rule


Constructor Summary
Color()
           
 
Method Summary
 Integer getId()
           
 String getName()
           
 void setId(Integer id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Color

public Color()
Method Detail

getId

public Integer getId()

setId

public void setId(Integer id)

getName

public String getName()

setName

public void setName(String name)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.