Skip to content

Commit

Permalink
Merge pull request #494 from njr-11/Attribute-is-missing-type
Browse files Browse the repository at this point in the history
Attribute is missing type
  • Loading branch information
otaviojava authored Feb 27, 2024
2 parents e84d825 + 09d8aed commit 0beb855
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api/src/main/java/jakarta/data/metamodel/Attribute.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@

/**
* Represents an entity attribute in the {@link StaticMetamodel}.
*
* @param <T> entity class of the static metamodel.
*/
public interface Attribute {
public interface Attribute<T> {
/**
* Obtain the entity attribute name, suitable for use wherever the specification requires
* an entity attribute name. For example, as the parameter to {@link Sort#asc(String)}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* @param <T> entity class of the static metamodel.
*/
public interface SortableAttribute<T> extends Attribute {
public interface SortableAttribute<T> extends Attribute<T> {

/**
* Obtain a request for an ascending {@link Sort} based on the entity attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class _AsciiChar {

public static volatile SortableAttribute<AsciiCharacter> id;
public static volatile TextAttribute<AsciiCharacter> hexadecimal;
public static volatile Attribute isControl; // user decided it didn't care about sorting for this one
public static volatile Attribute<AsciiCharacter> isControl; // user decided it didn't care about sorting for this one
public static volatile SortableAttribute<AsciiCharacter> numericValue;
public static volatile TextAttribute<AsciiCharacter> thisCharacter;

Expand Down

0 comments on commit 0beb855

Please sign in to comment.