File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed 
jnosql-orientdb/src/main/java/org/eclipse/jnosql/databases/orientdb/mapping Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1818import  org .eclipse .jnosql .mapping .NoSQLRepository ;
1919
2020/** 
21-  * The OrientDB {@link NoSQLRepository} 
21+  * A repository interface for OrientDB that extends {@link NoSQLRepository}. 
22+  * <p> 
23+  * This interface allows interaction with OrientDB as a document-oriented NoSQL database, 
24+  * supporting standard CRUD operations and custom queries using the {@link SQL} annotation. 
25+  * </p> 
2226 * 
23-  * @param <T>  the entity type 
24-  * @param <K> the entity id type 
27+  * <p>Example usage:</p> 
28+  * <pre> 
29+  * {@code 
30+  * @Repository 
31+  * public interface UserRepository extends OrientDBCrudRepository<User, String> { 
32+  * 
33+  *     @SQL("SELECT FROM User WHERE age > :age") 
34+  *     List<User> findUsersByAge(@Param("age") int age); 
35+  * 
36+  *     @SQL("SELECT FROM User WHERE name = :name") 
37+  *     List<User> findByName(@Param("name") String name); 
38+  * } 
39+  * } 
40+  * </pre> 
41+  * 
42+  * @param <T> the entity type 
43+  * @param <K> the entity ID type 
2544 */ 
2645public  interface  OrientDBCrudRepository <T , K > extends  NoSQLRepository <T , K > {
2746}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments