Commit Graph

246 Commits

Author SHA1 Message Date
Lukas Eder
591afd7fcb [#2135] Postgres ENUM data type isn't supported correctly, if the
ENUM needs full qualification
2013-06-23 13:50:07 +02:00
Lukas Eder
4e4874e367 [#2502] Code generation fails to generate valid java for stored
procedures that accept parameters named configuration.
2013-06-10 21:43:33 +02:00
Lukas Eder
d239a99d7f Whitespace fix in generated javax.annotation.Generated reference 2013-06-09 12:52:06 +02:00
Lukas Eder
64e48ea499 [#2461] Generator Encoding Error for Database-Objects with Unicode-Names 2013-05-24 19:56:44 +02:00
Lukas Eder
d10cd42caf [#2413] Suppress warnings in generated code (@SuppressWarnings("all")
doesn't suppress "rawtypes" warnings with javac)
2013-05-03 11:55:56 +02:00
Lukas Eder
da03005313 [#2390] Change Configuration API to reflect jOOQ-style getter / setter
naming - Fixed code generator
2013-04-07 17:32:08 +02:00
Lukas Eder
20af63d55e [#2379] Replace 3.0-RC1 Executor type by a contextual DSL type
constructed from Factory.using() - Step 3
- Make Executor package-private
- Rename Executor to ContextDSLImpl
- Re-generate H2, MySQL, Oracle databases
- Let DAO reference a Configuration instead of an Executor [#2382]
2013-04-06 18:45:45 +02:00
Lukas Eder
ec4283f169 [#2366] Add org.jooq.util.example package to jOOQ-codegen with some
example GeneratorStrategies
2013-04-03 21:25:03 +02:00
Lukas Eder
fe22d7b8d0 [#2366] Add org.jooq.util.example package to jOOQ-codegen with some
example GeneratorStrategies
2013-04-03 21:15:50 +02:00
Lukas Eder
8e8915c008 [#2328] Remove UpdatableTable marker interface, pulling up methods
to Table
2013-03-24 11:45:40 +01:00
Lukas Eder
e7b46589a1 [#2350] Do not statically reference a Connection from GenerationTool 2013-03-23 11:34:30 +01:00
Lukas Eder
dd2eaf1541 [#2308] Do not generate "final" Tables.java, UniqueKeys.java, etc 2013-03-08 12:45:48 +01:00
Lukas Eder
e491172bfe Revert "[#2248] Javac's max constant pool of 64k can be exceeded in
generated Keys.java or Tables.java - Regenerated Oracle schema"
2013-03-08 11:42:57 +01:00
Lukas Eder
9c3e348987 [#2294] Compilation errors when code generator is configured with
<daos>true</daos> and <relations>false</relations>
2013-03-08 09:42:02 +01:00
Lukas Eder
30a6a85d73 [#2308] Do not generate "final" Tables.java, UniqueKeys.java, etc 2013-03-08 09:24:20 +01:00
Lukas Eder
4abbb89b91 [#2314] Outdated GenerationTool Javadoc 2013-03-08 08:56:59 +01:00
Lukas Eder
ac4ef099ec [#2298] Suppress warnings in generated code (@SuppressWarnings("all")
doesn't work with javac)
2013-03-03 10:05:29 +01:00
Lukas Eder
e5ce8d118b [#2248] Javac's max constant pool of 64k can be exceeded in
generated Keys.java or Tables.java
2013-02-28 18:42:31 +01:00
Lukas Eder
79886062ca Applied formatter 2013-02-28 18:04:09 +01:00
Lukas Eder
d4e1445c5e [#2285] Add more verbosity to the code generator, when configured badly 2013-02-28 15:08:11 +01:00
Lukas Eder
38f2f6b39a [#2283] Class loading issues in GenerationTool when called by Gradle -
Removed unnecessary method argument
2013-02-28 12:38:59 +01:00
Lukas Eder
3fee0582b9 Fixed whitespace (no tabs, only spaces) 2013-02-28 12:35:05 +01:00
Lukas Eder
669c18f1c0 [#2283] Class loading issues in GenerationTool when called by Gradle -
Avoid NPE's now, that <jdbc/> is an optional configuration element
2013-02-28 12:07:11 +01:00
Lukas Eder
07672a1432 [#2283] Class loading issues in GenerationTool when called by Gradle -
Allow for setting ClassLoader and/or Connection externally
2013-02-28 12:04:52 +01:00
Lukas Eder
ab6b36f943 [#2283] Class loading issues in GenerationTool when called by Gradle 2013-02-28 10:23:47 +01:00
Lukas Eder
e012c0e547 [#2255] Add code generation option to avoid the generation of
"global object references"
2013-02-20 17:22:18 +01:00
Lukas Eder
682f844709 [#2212] "code size too large" in generated SchemaImpl, when the number
of tables exceeds 15k
2013-02-19 18:53:16 +01:00
Lukas Eder
fba595a302 [#1977] Remove the confusing concept of having a "main key" as opposed
to a "primary key"
2013-02-12 12:30:11 +01:00
Lukas Eder
3d30514a52 [#2133] Allow for mapping <outputSchema/> to "" (empty) in order to
avoid the generation of a schema
2013-02-11 15:14:59 +01:00
Lukas Eder
e7b3db3ccb [#2079] Support generation of bean validation annotations on records
and interfaces
2013-02-11 14:13:23 +01:00
Lukas Eder
d62d6c5994 [#2154] Generated Records should access values by index, not by
field, for performance reasons
2013-02-04 16:22:00 +01:00
Lukas Eder
f4adc38d8e Improved performance of AbstractRecord.fieldsRow(), resulting in a
14% performance gain in a relevant Record.setValue(),
Record.getValue() benchmark
2013-02-01 14:08:59 +01:00
Lukas Eder
c18d6b45af [#1649] Remove support for code generation from pre-jOOQ 2.0 .properties
file
2013-01-06 16:55:20 +01:00
Lukas Eder
b442a62ee8 [#2089] Generate an "empty" DefaultSchema for those databases that do
not have any schema (CUBRID, Firebird, SQLite)
2013-01-04 15:52:40 +01:00
Lukas Eder
b84c0060b9 Changed year number in copyright to 2013 2013-01-03 12:05:32 +01:00
Lukas Eder
135b9f2501 [#2076] Stop "supporting" comma-separated regular expressions in the
code generator configuration
2013-01-02 19:50:05 +01:00
Lukas Eder
cb0ca38a36 [#1801] Add Table.as(String, String...) to allow for creating a
table alias with aliased fields - Regenerated Firebird schema
2013-01-02 17:03:50 +01:00
Lukas Eder
d22d68f19e [#1801] Add Table.as(String, String...) to allow for creating a
table alias with aliased fields - Fixed code generator
2013-01-02 14:39:50 +01:00
Lukas Eder
e71d9444c2 [#2043] Remove generated navigation methods 2012-12-22 18:17:05 +01:00
Lukas Eder
3a7f4951be [#2042] Remove generated setters, setting foreign key values from
records
2012-12-22 18:08:09 +01:00
Lukas Eder
a0cd2916e2 [#2025] Correctly handle multiple foreign keys defined on the same
column
2012-12-22 17:56:17 +01:00
Lukas Eder
1ec5cd4ced [#2041] Generate foreign key name into records' fetch methods' Javadoc 2012-12-22 17:29:52 +01:00
Lukas Eder
fa7edefc65 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Added convenience method DataType.precision(int precision, int scale)
2012-12-22 08:39:06 +01:00
Lukas Eder
70a0ab3f44 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Let code generator generate precision, scale, and length information
 - Let MetaDataFieldProvider read precision, scale, and length
information from JDBC meta data
2012-12-21 22:35:26 +01:00
Lukas Eder
9b9f105417 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Removed SQLDataType from the DataType type hierarchy
2012-12-21 21:36:39 +01:00
Lukas Eder
a50307089d [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Removed deprecated method from [SQLDialect]DataType
 - Regenerated various schemata
2012-12-21 21:09:57 +01:00
Lukas Eder
520a92e4da Prevent duplicate interface names in generated code 2012-12-21 21:08:25 +01:00
Lukas Eder
623ee20bb6 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes
- Renamed AbstractDataType to DefaultDataType, made it non-abstract
- Removed [SQLDialect]DataType from DefaultDataType's type hierarchy
2012-12-21 20:54:14 +01:00
Lukas Eder
a007ba599d [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Removed unneeded DataType.getType(int, int)
2012-12-21 19:51:31 +01:00
Lukas Eder
003bc5d903 [#456] Add runtime support for PRECISION, SCALE, and LENGTH attributes -
Removed some obsolete DataType API parts
2012-12-21 18:50:22 +01:00
Lukas Eder
91ed5cf6f9 [#1689] Generate <E> E into(E) and <E> R from(E) methods to generated
records
2012-12-20 15:41:40 +01:00
Lukas Eder
7a80d2f155 [#1118] Remove support for the code generation ant task 2012-11-11 13:25:26 +01:00
Lukas Eder
d94d8cba3c [#1690] Add UpdatableRecord.key() returning a Record holding PK values 2012-11-10 11:18:07 +01:00
Lukas Eder
35b043286d [#1931] Code generator improvements
- Simplified JavaGenerator by removing unnecessary abstractions
- Re-ordered methods in generated Record classes
- Removed dead code
2012-11-04 17:28:30 +01:00
Lukas Eder
51733742b8 [#1934] Improve generated Record Javadoc 2012-11-04 14:03:44 +01:00
Lukas Eder
7547b42763 [#1931] Code generator improvements 2012-11-04 11:54:59 +01:00
Lukas Eder
ecc9a835b7 [#1932] Generate Javadocs for Table constructors 2012-11-04 11:23:42 +01:00
Lukas Eder
b3cd1c5cdf [#1931] Code generator improvements
- Added String.format() support to GenerationWriter
- Moved Javadoc printing to JavaWriter
- Separated Java writing (JavaWriter) from general writing
(GeneratorWriter)
- Rewrote some generation logic
- Added some convenience to GeneratorStrategy
- Regenerated H2, Oracle, Postgres schemata
2012-11-03 16:00:12 +01:00
Lukas Eder
7f43e88e0a Removed unneeded writer 2012-11-02 18:14:06 +01:00
Lukas Eder
5e9e00a973 [#1918] Let generated Records implement Record1, Record2, ...,
Record[N] if applicable
2012-10-31 21:14:23 +01:00
Lukas Eder
e506d9de65 [#1533] Extract Executor API from Factory. Let Factory contain only
static QueryPart factory methods
2012-10-26 23:03:04 +02:00
Lukas Eder
f4e7c57732 [#1887] Remove all deprecated code 2012-10-26 18:25:34 +02:00
Lukas Eder
65e292f261 [#1740] Remove support for generated master data enums 2012-10-26 17:02:06 +02:00
Lukas Eder
4a1fc9cd8a [#1887] Remove all deprecated code 2012-10-26 15:54:25 +02:00
Lukas Eder
aab4c5737c [#1866] Deprecate [Schema-Name]Factory, remove reference to it from the
tutorials
2012-10-12 18:22:22 +02:00
Lukas Eder
024b3e4913 Improved logging formatting 2012-09-22 13:59:21 +02:00
Lukas Eder
55e7449efa [#1791] Log a table's input/output names, and PK name when generating
code
2012-09-05 19:13:22 +02:00
Lukas Eder
943f084b13 Removed useless Javadoc 2012-09-05 19:06:32 +02:00
Lukas Eder
438504c265 [#1783] Generate @SuppressWarnings("all") in jOOQ-generated artefacts 2012-09-01 12:09:23 +02:00
Lukas Eder
7d69442b3b Suppress some warnings 2012-08-25 17:38:39 +02:00
Lukas Eder
e346394ac7 [#1730] Compilation errors in SQLite generated code when flag
<instanceFields/> is set to true
2012-08-23 20:01:19 +02:00
Lukas Eder
f4a3e2a4c8 [#457] Add support for Oracle user-defined AGGREGATE functions 2012-08-05 11:14:21 +02:00
Lukas Eder
8070268def [#1664] By default, activate <relations/> in the code generator 2012-08-04 12:49:22 +02:00
Lukas Eder
7a56784539 [#1584] Code generation error with Oracle UDT static functions 2012-08-01 09:59:17 +02:00
Lukas Eder
100681882a [#1339] Add option to generate immutable pojos 2012-07-31 23:59:18 +02:00
Lukas Eder
f3f93dfa29 [#1596] Add support for optimistic locking using generated information
about "timestamp" or "version" columns
2012-07-27 12:35:24 +02:00
Lukas Eder
d2dc730ccb [#1587] Generate missing constructors taking DataSource in
schema-specific factories
2012-07-19 19:44:15 +02:00
Lukas Eder
c95aa4cb7b [#1552] Generate fetchBy[ColumnName] methods in generated DAO classes 2012-07-11 22:17:52 +02:00
Lukas Eder
0749aa48b7 [#1510] Generate additional setters for foreign keys, accepting records
as arguments
2012-07-06 19:01:25 +02:00
Lukas Eder
0fd55ed604 [#1534] Generate more meaningful Javadoc where "an uncommented item"
stands now
2012-07-06 12:36:39 +02:00
Lukas Eder
ae04a2ed19 [#1525] Generate missing Javadoc to getters for procedure OUT parameters 2012-07-06 12:25:40 +02:00
Lukas Eder
cab9bde9de [#1528] Let generated interfaces extend Serializable 2012-07-06 12:19:16 +02:00
Lukas Eder
51fd7fc55a [#1499] Generated members of Tables.java are not final 2012-06-30 10:23:32 +02:00
Lukas Eder
22222acb75 [#1490] Compilation error when a SQL Server stored procedure has a
parameter named "value"
2012-06-29 19:33:26 +02:00
Lukas Eder
1973a7abee [#1509] Minor improvements in the generator source code. GitHub pull
request #23 - Added Javadoc
2012-06-29 17:55:30 +02:00
Aaron Digulla
16c5442f0c Allow to suppress the generation of the "hiding" option for @SuppressWarnings to get rid of the warning about unused options in @SuppressWarnings... 2012-06-22 16:37:49 +02:00
Aaron Digulla
40e941080f Move getting of unique keys into a new method to allow better reuse of the code 2012-06-18 09:43:55 +02:00
Aaron Digulla
a764e59103 Allow extended classes to access the strategy 2012-06-18 09:42:35 +02:00
Aaron Digulla
f0c63e6253 Split huge generate(schema) method in several smaller ones.
Improved exception handling.
Made the code reusable in custom code generators.
2012-06-07 17:59:15 +02:00
Aaron Digulla
7fda9a03ee There is no point hiding this method from custom code generators. 2012-06-07 17:58:10 +02:00
Aaron Digulla
9f7e7e7fa9 Use the new exception 2012-06-07 17:57:50 +02:00
Aaron Digulla
75084e61f9 New exception to get rid of most try-catch blocks in the code generator 2012-06-07 17:57:21 +02:00
Aaron Digulla
fe9c1fe668 Made StopWatch a field, so we don't have to pass it around all the time. 2012-06-07 16:42:54 +02:00
Lukas Eder
b168ff70ef [#1459] Generated Keys.java static class too large (static initialiser
can become bigger than 64kb)
2012-06-03 13:38:29 +02:00
Lukas Eder
bd72bc41af [#1473] Add IdentityDefinition to jooq-meta 2012-06-02 13:25:49 +02:00
Lukas Eder
2d166011d7 Removed unused method 2012-06-01 17:48:47 +02:00
Lukas Eder
947d2c6421 [#1463] Add option to let generated Record / POJO objects implement a
common generated interface
2012-06-01 17:47:46 +02:00
Lukas Eder
0e5225302e [#1456] Custom generator strategy's printImplements() is called with
Mode == RECORD for tables
2012-06-01 17:26:58 +02:00
Lukas Eder
f109e734a0 [#1358] Compilation errors in generated source code when Oracle
overloaded procedures collide with procedures that end with numbers
2012-06-01 15:40:51 +02:00
Lukas Eder
2150f95d2c [#1454] Add line breaks to generated Javadoc where appropriate 2012-05-25 14:56:49 +02:00