org.apache.cayenne.jpa.map
Class JpaManyToMany

java.lang.Object
  extended by org.apache.cayenne.jpa.map.JpaAttribute
      extended by org.apache.cayenne.jpa.map.JpaRelationship
          extended by org.apache.cayenne.jpa.map.JpaManyToMany
All Implemented Interfaces:
XMLSerializable

public class JpaManyToMany
extends JpaRelationship


Field Summary
protected  JpaJoinTable joinTable
           
protected  String mapKey
           
protected  String mappedBy
           
protected  String orderBy
           
 
Fields inherited from class org.apache.cayenne.jpa.map.JpaRelationship
cascade, fetch, targetEntityName
 
Fields inherited from class org.apache.cayenne.jpa.map.JpaAttribute
name, propertyDescriptor
 
Constructor Summary
JpaManyToMany()
           
JpaManyToMany(javax.persistence.ManyToMany annotation)
           
 
Method Summary
 void encodeAsXML(XMLEncoder encoder)
          Prints itself as XML to the provided XMLEncoder.
 JpaJoinTable getJoinTable()
           
 String getMapKey()
           
 String getMappedBy()
           
 String getOrderBy()
           
 boolean isToMany()
           
 void setJoinTable(JpaJoinTable joinTable)
           
 void setMapKey(String mapKey)
           
 void setMappedBy(String mappedBy)
           
 void setOrderBy(String orderBy)
           
 
Methods inherited from class org.apache.cayenne.jpa.map.JpaRelationship
getCascade, getFetch, getTargetEntityName, setCascade, setFetch, setTargetEntityName, toString
 
Methods inherited from class org.apache.cayenne.jpa.map.JpaAttribute
getName, getPropertyDescriptor, setName, setPropertyDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mappedBy

protected String mappedBy

joinTable

protected JpaJoinTable joinTable

orderBy

protected String orderBy

mapKey

protected String mapKey
Constructor Detail

JpaManyToMany

public JpaManyToMany()

JpaManyToMany

public JpaManyToMany(javax.persistence.ManyToMany annotation)
Method Detail

encodeAsXML

public void encodeAsXML(XMLEncoder encoder)
Description copied from interface: XMLSerializable
Prints itself as XML to the provided XMLEncoder.

Specified by:
encodeAsXML in interface XMLSerializable
Specified by:
encodeAsXML in class JpaAttribute

isToMany

public boolean isToMany()
Specified by:
isToMany in class JpaRelationship

getJoinTable

public JpaJoinTable getJoinTable()

getMappedBy

public String getMappedBy()

setMappedBy

public void setMappedBy(String mappedBy)

getOrderBy

public String getOrderBy()

setOrderBy

public void setOrderBy(String orderBy)

setJoinTable

public void setJoinTable(JpaJoinTable joinTable)

getMapKey

public String getMapKey()

setMapKey

public void setMapKey(String mapKey)


Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.