-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requested fields on every ancestor type are now taken into account.
- Loading branch information
Gregory Fernandez
committed
Sep 12, 2022
1 parent
3466bf5
commit 947352d
Showing
9 changed files
with
86 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
crnk-core/src/test/java/io/crnk/core/mock/models/MiddleTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.crnk.core.mock.models; | ||
|
||
import io.crnk.core.resource.annotations.JsonApiResource; | ||
|
||
@JsonApiResource(type = "middleTask", subTypes = BottomTask.class, resourcePath = "treeTasks") | ||
public abstract class MiddleTask extends TopTask { | ||
|
||
private String publicComment; | ||
|
||
private String privateComment; | ||
|
||
public String getPublicComment() { | ||
return publicComment; | ||
} | ||
|
||
public void setPublicComment(final String publicComment) { | ||
this.publicComment = publicComment; | ||
} | ||
|
||
public String getPrivateComment() { | ||
return privateComment; | ||
} | ||
|
||
public void setPrivateComment(final String privateComment) { | ||
this.privateComment = privateComment; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
crnk-core/src/test/java/io/crnk/core/mock/repository/SuperTaskRepository.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
crnk-core/src/test/java/io/crnk/core/mock/repository/TopTaskRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.crnk.core.mock.repository; | ||
|
||
import io.crnk.core.mock.models.TopTask; | ||
import io.crnk.core.queryspec.QuerySpec; | ||
import io.crnk.core.repository.ReadOnlyResourceRepositoryBase; | ||
import io.crnk.core.resource.list.ResourceList; | ||
|
||
public class TopTaskRepository extends ReadOnlyResourceRepositoryBase<TopTask, Long> { | ||
|
||
public TopTaskRepository() { | ||
super(TopTask.class); | ||
} | ||
|
||
@Override | ||
public ResourceList<TopTask> findAll(final QuerySpec querySpec) { | ||
return null; | ||
} | ||
} |