Adding table-cacheOf concept; ability to add a child record from child-list widget

This commit is contained in:
2022-12-05 10:24:15 -06:00
parent 3691ad87e5
commit 060da69afb
32 changed files with 1766 additions and 109 deletions

View File

@ -1,14 +1,20 @@
#!/usr/bin/env groovy
/*******************************************************************************
** Script to convert a list of columnNames from a CREATE TABLE statement
** to fields for a QRecordEntity (on stdout)
** Script to convert a CREATE TABLE statement to fields for a QRecordEntity
*******************************************************************************/
if (args.length < 1)
{
System.out.println("Usage: ${this.class.getSimpleName()} EntityClassName [writeWholeClass] [writeTableMetaData]")
System.exit(1);
}
String className = args[0]
boolean writeWholeClass = args.length > 1 ? args[1] : false;
boolean writeTableMetaData = args.length > 2 ? args[2] : false;
println("Please paste in a CREATE TABLE statement (then a newline and an end-of-file (CTRL-D))")
def reader = new BufferedReader(new InputStreamReader(System.in))
String line
String allFieldNames = ""
@ -27,7 +33,6 @@ if(writeWholeClass)
public class %s extends QRecordEntity
{
public static final String TABLE_NAME = "%s";
""".formatted(className, className, classNameLcFirst));
}