bug修复
This commit is contained in:
parent
baf12c0657
commit
ac05b505cc
@ -1,16 +1,12 @@
|
||||
package com.codesdream.ase.model.parent;
|
||||
|
||||
import com.codesdream.ase.model.mark.Tag;
|
||||
import com.codesdream.ase.model.permission.User;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
import javax.persistence.Entity;
|
||||
|
||||
@Entity
|
||||
@Table
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class Parent extends User {
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.codesdream.ase.repository.activity;
|
||||
|
||||
import com.codesdream.ase.model.activity.Activity;
|
||||
import com.codesdream.ase.model.permission.User;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
@ -14,10 +13,7 @@ public interface ActivityRepository extends JpaRepository<Activity, Integer> {
|
||||
List<Activity> findByTitle(String title);
|
||||
List<Activity> findByTitle(String title, Sort sort);
|
||||
|
||||
List<Activity> findByCreator(User creator);
|
||||
List<Activity> findByCreator(User creator, Sort sort);
|
||||
|
||||
List<Activity> findByManager(User manager);
|
||||
List<Activity> findByManager(User manager, Sort sort);
|
||||
List<Activity> findByCreatorId(int creator);
|
||||
List<Activity> findByCreatorId(int creator, Sort sort);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user