mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Rename hash to sqlHash to better reflect what it is (CRC32 checksum of the sql)
This commit is contained in:
@@ -21,8 +21,8 @@ public interface MetaQueryMetric extends MetaTimedMetric {
|
||||
String getSql();
|
||||
|
||||
/**
|
||||
* Return the hash of the plan.
|
||||
* Return the hash of the sql.
|
||||
*/
|
||||
long getHash();
|
||||
long getSqlHash();
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package io.ebean.meta;
|
||||
public class MetricData {
|
||||
|
||||
private String name;
|
||||
private long hash;
|
||||
private long sqlHash;
|
||||
private String loc;
|
||||
private String sql;
|
||||
|
||||
@@ -30,12 +30,12 @@ public class MetricData {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public long getHash() {
|
||||
return hash;
|
||||
public long getSqlHash() {
|
||||
return sqlHash;
|
||||
}
|
||||
|
||||
public void setHash(long hash) {
|
||||
this.hash = hash;
|
||||
public void setSqlHash(long sqlHash) {
|
||||
this.sqlHash = sqlHash;
|
||||
}
|
||||
|
||||
public String getLoc() {
|
||||
|
||||
Reference in New Issue
Block a user