net.java.ao
Annotation Type ManyToMany


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ManyToMany

Author:
Daniel Spiewak

Required Element Summary
 java.lang.Class<? extends Entity> value
           
 
Optional Element Summary
 java.lang.String where
          A String clause allowing developer-specified additional conditions to be imposed on the relationship.
 

Element Detail

value

public abstract java.lang.Class<? extends Entity> value

where

public abstract java.lang.String where

A String clause allowing developer-specified additional conditions to be imposed on the relationship. The String must be a proper SQL WHERE clause:

"deleted = FALSE"

One must be extremely careful with this sort of thing though because sometimes (as is the case with the above sample), the unparameterized code may not execute as expected against every database (due to differences in typing and value handling). Thus, in all but non-trivial cases, defined implementations should be used.

Default:
""