org.hibernate.test.annotations.manytomany
Class Friend

java.lang.Object
  extended by org.hibernate.test.annotations.manytomany.Friend
All Implemented Interfaces:
Serializable

@Entity
public class Friend
extends Object
implements Serializable

Friend has other friends in a many to many way

See Also:
Serialized Form

Constructor Summary
Friend()
           
 
Method Summary
 Set<Friend> getFriends()
           
 Integer getId()
           
 String getName()
           
 void setFriends(Set<Friend> friend)
           
 void setId(Integer integer)
           
 void setName(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Friend

public Friend()
Method Detail

getId

public Integer getId()

getName

public String getName()

setId

public void setId(Integer integer)

setName

public void setName(String string)

getFriends

public Set<Friend> getFriends()

setFriends

public void setFriends(Set<Friend> friend)


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