JPA RepositoryのRepository

1386 ワード

Repository.JAvaソース:
package org.springframework.data.repository;

import org.springframework.stereotype.Indexed;

/**
 * Central repository marker interface. Captures the domain type to manage as well as the domain type's id type. General
 * purpose is to hold type information as well as being able to discover interfaces that extend this one during
 * classpath scanning for easy Spring bean creation.
 * 

* Domain repositories extending this interface can selectively expose CRUD methods by simply declaring methods of the * same signature as those declared in {@link CrudRepository}. * * @see CrudRepository * @param the domain type the repository manages * @param the type of the id of the entity the repository manages * @author Oliver Gierke */ @Indexed public interface Repository { }


Repository.JAvaソース注釈翻訳:
package org.springframework.data.repository;

import org.springframework.stereotype.Indexed;

/**
 *   Repository    。                 id  。 
 *            ,                     ,      Spring bean。
 *        Repository          {@link CrudRepository}                      CRUD  。
 * 
 * @see CrudRepository
 * @param  Repository       。
 * @param  Repository      id   
 * @author    .   
 */
@Indexed
public interface Repository {

}