mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#788 - Deprecate findRowCount() ... add findCount(). Effectively renaming findRowCount() to findCount()
This commit is contained in:
@@ -25,7 +25,7 @@ public class ResetBasicData {
|
||||
|
||||
server.execute(new TxRunnable() {
|
||||
public void run() {
|
||||
if (server.find(Product.class).findRowCount() > 0) {
|
||||
if (server.find(Product.class).findCount() > 0) {
|
||||
// we can't really delete this base data as
|
||||
// the test rely on the products being in there
|
||||
return;
|
||||
@@ -72,7 +72,7 @@ public class ResetBasicData {
|
||||
|
||||
public void insertCountries() {
|
||||
|
||||
if (server.find(Country.class).findRowCount() > 0) {
|
||||
if (server.find(Country.class).findCount() > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public class ResetBasicData {
|
||||
|
||||
public void insertProducts() {
|
||||
|
||||
if (server.find(Product.class).findRowCount() > 0) {
|
||||
if (server.find(Product.class).findCount() > 0) {
|
||||
return;
|
||||
}
|
||||
server.execute(new TxRunnable() {
|
||||
|
||||
@@ -18,7 +18,7 @@ public class TestInsertNoIdBean extends BaseTestCase {
|
||||
|
||||
Ebean.save(bean);
|
||||
|
||||
int rowCount = Ebean.find(NoIdBean.class).findRowCount();
|
||||
int rowCount = Ebean.find(NoIdBean.class).findCount();
|
||||
|
||||
assertTrue("rowCount:"+rowCount, rowCount > 0);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public class TestTextJsonSelfRef extends BaseTestCase {
|
||||
Ebean.execute(new TxRunnable() {
|
||||
public void run() {
|
||||
|
||||
if (Ebean.find(SelfRefCustomer.class).findRowCount() == 0) {
|
||||
if (Ebean.find(SelfRefCustomer.class).findCount() == 0) {
|
||||
SelfRefCustomer c1 = new SelfRefCustomer();
|
||||
c1.setName("Foo");
|
||||
c1.setReferredBy(c1);
|
||||
|
||||
Reference in New Issue
Block a user