#2858 - Example for entity-field-access

This commit is contained in:
Rob Bygrave committed 2022-10-14 11:08:49 +13:00
1 parent 227968ef8e
commit 475f937421
5 files changed
+9 -9

No files matched your search

@@ -46,12 +46,12 @@ public class Customer extends BaseModel {
boolean inactive;
PhoneNumber phoneNumber;
public PhoneNumber phoneNumber;
ValidEmail email;
@Column(length = 100)
String name;
public String name;
Date registered;
@@ -215,10 +215,9 @@ public class QOrderTest {
}
private static void setupData() {
customer = new Customer();
customer.setName("Fred");
customer.setPhoneNumber(new PhoneNumber("Ph1"));
customer.name = "Fred";
customer.phoneNumber = new PhoneNumber("Ph1");
customer.save();
order = new Order();