Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ public String getCaseInsensitiveLike() {
}
}

@Override
public boolean supportsPartitionBy() {
return getVersion().isSameOrAfter( 1, 4, 200 );
}

@Override
public boolean supportsCaseInsensitiveLike() {
return getVersion().isSameOrAfter( 1, 4, 194 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,11 @@ public boolean supportsCaseInsensitiveLike(){
return true;
}

@Override
public boolean supportsPartitionBy() {
return true;
}

@Override
public boolean supportsBindingNullSqlTypeForSetNull() {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void tearDown(SessionFactoryScope scope) {
public static class DisplayItem implements Serializable {

@Id
@Column(name = "DISPLAY_ITEM_ID")
private Integer id;

@Column(name = "DISCOUNT_CODE")
Expand All @@ -90,7 +91,7 @@ public static class DisplayItem implements Serializable {
@Column(name = "DISCOUNT_VALUE")
private Double discountValue;

@Formula("ROW_NUMBER() OVER( PARTITION BY DISCOUNT_CODE ORDER BY SIGN(DISCOUNT_VALUE) DESC )")
@Formula("ROW_NUMBER() OVER(PARTITION BY DISCOUNT_CODE ORDER BY DISPLAY_ITEM_ID)")
private Integer itemsByCode;

public Integer getId() {
Expand Down
Loading