From fd45648c7e1a58f81fdbfae0a2edd81b761b78ac Mon Sep 17 00:00:00 2001 From: Johan Vosloo Date: Fri, 13 May 2022 03:17:52 +0200 Subject: [PATCH] Fixed readme Removed '$' from field declarations in readme, since the syntax has changed --- chill-db/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chill-db/README.md b/chill-db/README.md index 6494a96..4715f32 100644 --- a/chill-db/README.md +++ b/chill-db/README.md @@ -12,12 +12,12 @@ It is designed to be usable quickly, with code-only configuration. class User extends chill.db.ChillRecord { // by default, maps to the `user` table // define column mappings as fields, with all relevant metadata - Field id = field$("id", BigInteger.class).autoGenerated$().primaryKey(); - Field createdAt = field$("created_at", Date.class).createdAtCol(); - Field updatedAt = field$("created_at", Date.class).updatedAtCol(); + Field id = field("id", BigInteger.class).autoGenerated().primaryKey(); + Field createdAt = field("created_at", Date.class).createdAtCol(); + Field updatedAt = field("created_at", Date.class).updatedAtCol(); - Field email = field$("email", String.class).required(); - Field password = field$("password", String.class).required(); + Field email = field("email", String.class).required(); + Field password = field("password", String.class).required(); public static final find = finder(User.class); @@ -61,4 +61,4 @@ Query matches = User.where("email like ?", "%chill%"); * Require no annotations * Express all database metadata in code, in the model files, so you can see wtf is going on * Be easily debuggable -* Show users wtf is going on at the JDBC level clearly via logging \ No newline at end of file +* Show users wtf is going on at the JDBC level clearly via logging