Skip to content

Commit

Permalink
Move Include to package-info
Browse files Browse the repository at this point in the history
  • Loading branch information
wcekan committed Feb 20, 2021
1 parent 317bd43 commit c4b29bf
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/
package example.packageshareable;

import com.yahoo.elide.annotation.Include;

import java.util.Collection;

import javax.persistence.Entity;
Expand All @@ -20,7 +18,6 @@
* Container for ShareableWithPackageShare and UnshareableWithEntityUnshare.
*/
@Entity
@Include(rootLevel = true)
public class ContainerWithPackageShare {
private long id;
private Collection<UnshareableWithEntityUnshare> unshareableWithEntityUnshares;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/
package example.packageshareable;

import com.yahoo.elide.annotation.Include;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
Expand All @@ -18,7 +16,6 @@
* Package level shareable bean.
*/
@Entity
@Include(rootLevel = true)
public class ShareableWithPackageShare {
private long id;
private ContainerWithPackageShare container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package example.packageshareable;

import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.SharePermission;

import javax.persistence.Entity;
Expand All @@ -20,7 +19,6 @@
*/
@Entity
@SharePermission(sharable = false)
@Include(rootLevel = true)
public class UnshareableWithEntityUnshare {
private long id;
private ContainerWithPackageShare container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* See LICENSE file in project root for terms.
*/
@SharePermission
@Include(rootLevel = true)
package example.packageshareable;

import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.SharePermission;
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@

package com.yahoo.elide.models.generics;

import com.yahoo.elide.annotation.Include;

import javax.persistence.Entity;

/**
* Helper class to test parameterized subclass/superclass hierarchies.
*/
@Include(rootLevel = true)
@Entity
public class Employee extends Peon<Manager> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@

package com.yahoo.elide.models.generics;

import com.yahoo.elide.annotation.Include;

import javax.persistence.Entity;

/**
* Tests a parameterized superclass.
*/
@Include(rootLevel = true)
@Entity
public class Manager extends Overlord<Employee> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* See LICENSE file in project root for terms.
*/

@Include(rootLevel = true)
@SharePermission
package com.yahoo.elide.models.generics;

import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.SharePermission;
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>5.3.2</version>
<version>6.1.1</version>
<configuration>
<failBuildOnCVSS>7</failBuildOnCVSS>
<skipSystemScope>true</skipSystemScope>
Expand Down

0 comments on commit c4b29bf

Please sign in to comment.