uk.ac.ebi.ep.mm.app
Class CustomEntity

java.lang.Object
  extended by uk.ac.ebi.ep.mm.app.CustomEntity

public final class CustomEntity
extends Object

the aim of this class if to provide a transfer object ( place holder) for the entities that will be returned from the hibernate query

Author:
joseph

Constructor Summary
CustomEntity()
           
CustomEntity(Compounds compounds)
           
CustomEntity(Compounds compounds, Reference reference)
           
CustomEntity(Reference reference)
           
CustomEntity(String chebiAccession, String name, String reference_id, String reference_name, String relation)
           
 
Method Summary
 boolean equals(Object obj)
           
 Compounds getCompounds()
           
 Reference getReference()
           
 String getRelationship()
           
 int hashCode()
           
 void setRelationship(String relationship)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomEntity

public CustomEntity()

CustomEntity

public CustomEntity(Compounds compounds)

CustomEntity

public CustomEntity(Reference reference)

CustomEntity

public CustomEntity(Compounds compounds,
                    Reference reference)

CustomEntity

public CustomEntity(String chebiAccession,
                    String name,
                    String reference_id,
                    String reference_name,
                    String relation)
Method Detail

getCompounds

public Compounds getCompounds()

getReference

public Reference getReference()

getRelationship

public String getRelationship()

setRelationship

public void setRelationship(String relationship)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 EMBL-EBI. All Rights Reserved.