Spring Data Core

org.springframework.data.repository
Annotation Type RepositoryDefinition


@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface RepositoryDefinition

Annotation to demarcate interfaces a repository proxy shall be created for. Annotating an interface with RepositoryDefinition will cause the same behaviour as extending Repository.

Author:
Oliver Gierke
See Also:
Repository

Required Element Summary
 Class<?> domainClass
          The domain class the repository manages.
 Class<? extends Serializable> idClass
          The id class of the entity the repository manages.
 

Element Detail

domainClass

public abstract Class<?> domainClass
The domain class the repository manages. Equivalent to the T type parameter in Repository.

Returns:
See Also:
Repository

idClass

public abstract Class<? extends Serializable> idClass
The id class of the entity the repository manages. Equivalent to the ID type parameter in Repository.

Returns:
See Also:
Repository

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.