Commit Graph

572 Commits

Author SHA1 Message Date
lukaseder
1f5a205ea1 [#4838] Switched flag default to false 2016-01-27 17:13:54 +01:00
lukaseder
3605b32d79 [#4869] Fixed initialisation issue with UDTs 2016-01-24 15:34:21 +01:00
lukaseder
153d161e70 [#4920] Generated functions without parameter names produce malformed SQL 2016-01-22 18:59:49 +01:00
lukaseder
ff3e01750e Fixed bad imports 2016-01-20 11:44:24 +01:00
lukaseder
8f30b065c0 [#4952] [#4954] New code generation flags
- [#4954] Add flag to turn off generation of queues
- [#4952] Add flag to turn off generation of database links
2016-01-20 11:05:53 +01:00
lukaseder
0826c10b16 [#4901] Add UniqueKey.getName() and ForeignKey.getName() 2016-01-08 16:37:27 +01:00
lukaseder
94f0bb2f69 [#4891] Accept DataSource in GenerationTool, in addition to Connection 2016-01-04 20:59:26 +01:00
lukaseder
11115c6741 [#4889] Update copyright to 2016 2016-01-04 20:59:08 +01:00
lukaseder
57fee34acc [#4889] Update copyright to 2016 2016-01-04 18:02:42 +01:00
lukaseder
a2eb9d5720 [#4868] Default to two spaces in Scala 2015-12-31 15:22:08 +01:00
lukaseder
602a200420 [#4879] Add generateGlobalCatalogReferences() and generateGlobalSchemaReferences() flags to code generator 2015-12-31 12:29:26 +01:00
lukaseder
938fb6f5e2 Blank out rather than mask [pro] code to avoid confusion with users 2015-12-31 10:02:02 +01:00
lukaseder
217a07b332 [#4883] Table valued functions generate bad Scala code 2015-12-30 20:09:00 +01:00
lukaseder
4b90f3b26a [#4880] Escaped block comment inside of Scaladoc causes compilation error 2015-12-30 18:53:54 +01:00
lukaseder
bee46a0761 [#4848] Replace all tabs also in content 2015-12-30 18:40:45 +01:00
lukaseder
b053be3e93 [#4869] Generate schema and catalog references in order to fully qualify tables 2015-12-30 18:28:21 +01:00
lukaseder
407aaf26b7 [#4868] We must've run out of important things to implement... :-P 2015-12-30 12:09:23 +01:00
lukaseder
d7678c44ac [#4848] Add internal API to configure indentation of generated code 2015-12-30 10:25:29 +01:00
lukaseder
9a9903f6fe [#4855] Remove final keyword on JavaGenerator methods 2015-12-28 07:54:18 +01:00
lukaseder
bdd7e0b0c7 [#4839] Rename Generator.fullyQualifiedTypes() to generateFullyQualifiedTypes() for naming consistency 2015-12-22 15:17:27 +01:00
lukaseder
1b8b773e14 [#4838] Add code generation flag <tableValuedFunctions/> to turn off generation of table-valued functions 2015-12-22 14:49:13 +01:00
lukaseder
ba0b2a2760 [#4833] Generate standalone function call for table-valued functions 2015-12-21 18:34:48 +01:00
lukaseder
709286faad [#4829] Generated convenience methods Routines.f() have misleading Javadoc 2015-12-21 18:14:41 +01:00
lukaseder
8145f77f2e [#4827] Add CatalogVersionProvider 2015-12-20 12:45:39 +01:00
lukaseder
eb4702ea6c Remove confusing [java-8] tags in OSS edition 2015-12-17 15:05:01 +01:00
lukaseder
6c1fc75aff [#4744] Record getter and setter names are generated with Mode.DEFAULT rather than Mode.Record 2015-12-16 15:22:56 +01:00
lukaseder
75ff22fe99 [#2032] Handle "DEFAULT_CATALOG" in the absence of catalog support 2015-12-10 14:58:09 +01:00
lukaseder
e2b4d0915d [2032] Added first implementation draft working with SQL Server 2015-12-10 14:38:42 +01:00
lukaseder
2e0b9d4588 [#681] Added support for domains to jOOQ-meta and generate stub classes 2015-10-18 16:51:46 +02:00
lukaseder
0a63655957 [#4124] Add <username/> as a synonym for <user/> in the code generation configuration 2015-10-14 17:32:02 +02:00
lukaseder
bd2420b410 [#4626] Zero-length DAO source files generated for non-updatable tables 2015-10-12 16:49:00 +02:00
lukaseder
52e9c51812 [#4620] Change error message when jOOQ-meta database type could not be found 2015-10-09 10:02:55 +02:00
lukaseder
7a238299aa Release 3.8.0-SNAPSHOT 2015-10-08 14:42:58 +02:00
lukaseder
bb286f23ef [#4264] Revert change 2015-10-08 11:25:02 +02:00
lukaseder
1f5e2e795b Release 3.7.0 2015-10-08 11:22:04 +02:00
lukaseder
5454fdbd0d Fixed warnings 2015-10-07 11:16:11 +02:00
lukaseder
c8dd018f64 [#4575] SQL comments with javadoc terminators break generated code 2015-09-27 12:29:19 +02:00
lukaseder
ac0e19131c [#4576] JavaWriter uses regex syntax unsupported in Java <1.8 2015-09-27 11:50:46 +02:00
lukaseder
d2db1503d7 [#3082] Don't import generated interfaces if there are no generated interfaces 2015-09-16 19:04:41 +02:00
lukaseder
fb2f776057 [#3082] Let generated POJOs reference Java array types, instead of ArrayRecords 2015-09-16 18:53:21 +02:00
lukaseder
f1cd6cead7 [#4567] Import also nested generic types of generated code 2015-09-16 17:05:11 +02:00
lukaseder
7c4df876c1 [#4562] Moved suggested implementation from GenerationUtil to DefaultGeneratorStrategy 2015-09-16 15:36:34 +02:00
Vladimir Vinogradov
e286fbb143 do not escape dot in names, but use capital case after it 2015-09-16 12:20:11 +03:00
lukaseder
a3b8019ba0 [#4537] Let GenerationTool accept multiple argument configurations 2015-09-13 10:04:27 +02:00
lukaseder
bdd1b6814e [#1364] Generate toString() on POJOs 2015-09-11 12:42:34 +02:00
lukaseder
61a0b5bb4d [#4531] Generated schema and generated Sequences classes import each other, which generates warnings (unused import) 2015-09-11 11:47:53 +02:00
lukaseder
90e4e506c2 [#4526] ScalaGenerator generates broken code when using xxxImplements 2015-09-09 08:01:01 +02:00
lukaseder
39452d3680 [#4470] Add <springAnnotations/> code generation configuration to generate Spring annotations on select objects 2015-08-13 13:45:29 +02:00
lukaseder
e35f3f572a [#4222] Add support for Oracle DB links in the code generator 2015-08-06 16:03:06 +02:00
Lukas Eder
e6c53b2698 Merge pull request #4430 from lightoze/master
[#4430] Fix routine parameter code generation for types with a binding
2015-07-29 16:55:54 +02:00
lukaseder
01eba80994 [#4429] Reverted incomplete implementation 2015-07-29 15:43:23 +02:00
Vladimir Kulev
7bf3afcafb Fix routine parameter code generation for types with a binding 2015-07-28 01:06:59 +03:00
lukaseder
d89572c098 [#4429] Add <javaTimeTypes/> to code generator configuration to generate Java 8 java.time types instead of java.sql types (incomplete implementation) 2015-07-27 16:00:25 +02:00
lukaseder
87ac3d61b6 [#4229] ScalaGenerator generates unneeded imports 2015-06-15 13:21:59 +02:00
lukaseder
66950031d0 [#4355] Regression with <schemaVersionProvider/> caused by formatting of @Generated annotation 2015-06-03 18:21:47 +02:00
lukaseder
246a7261ed [#4349] The trial / pro license is accidentally delivered with the Open Source Edition 2015-06-03 11:00:55 +02:00
lukaseder
474c29262b [#4287] Remove unused import org.jooq.Row in generated records 2015-05-19 18:12:10 +02:00
lukaseder
d5fb5b1f6b [#4264] Deprecate the <jpaAnnotations/> code generation flag 2015-05-04 12:24:03 +02:00
lukaseder
50698a3e2f [#4248] daoImplements option in MatcherStrategy not generating an implements statement in DAO class 2015-04-29 19:16:58 +02:00
lukaseder
04867f7e21 [#4227] ScalaGenerator should have its own list of reserved words 2015-04-29 09:28:35 +02:00
lukaseder
889673f75c [#4236] Compilation error in compiled code when column is called "null" 2015-04-27 22:50:34 +02:00
lukaseder
72c4478442 [#4227] ScalaGenerator should have its own list of reserved words 2015-04-27 22:41:11 +02:00
lukaseder
1dd15005f7 [#4225] ScalaGenerator logs that it generates XXX.java files 2015-04-27 08:37:10 +02:00
lukaseder
89244f4831 Release 3.7.0-SNAPSHOT 2015-04-22 18:02:14 +02:00
lukaseder
6e77528ea8 Release 3.6.0 2015-04-22 15:20:21 +02:00
lukaseder
49cd6bc7b3 [#4216] Remove obsolete "release" profile from pom.xml files 2015-04-20 15:40:14 +02:00
lukaseder
c141458372 [#4021] Avoid unnecessary imports also in Scala 2015-04-14 13:42:03 +02:00
lukaseder
10a3485e0a [#4190] Generated Record.values() does nothing 2015-04-10 17:35:53 +02:00
lukaseder
c66ef8a4f6 [#4173] NullPointerException when using SQL99 dialect with XMLDatabase
for code generation
2015-04-08 18:42:03 +02:00
lukaseder
4d4ccf7454 Package generation is only available in Oracle 2015-03-18 19:08:56 +01:00
lukaseder
73e5405dde [#4146] Generate PL/SQL constants 2015-03-18 18:53:35 +01:00
lukaseder
539fb703b9 [#2936] Move .settings, and other Eclipse-related artefacts in a
separate place
2015-03-17 20:45:19 +01:00
Lukas Eder
02af0c849a [#4132] GeneratorStrategy.instanceFields should be true by default 2015-03-10 17:43:14 +01:00
Lukas Eder
63c8c48a80 [#4122] Log code generation configuration XML only in DEBUG level 2015-03-04 14:54:41 +01:00
Lukas Eder
1d87609c02 [#4114] Compilation error when a stored procedure has a parameter named "value" and the generator strategy generates lower case literals 2015-03-03 16:30:56 +01:00
lukaseder
27d26848d2 [#4106] Add support for T-SQL optional INTEGER return values from stored procedures 2015-03-02 13:41:14 +01:00
lukaseder
0616fefee3 Don't import the class itself 2015-02-17 09:14:15 +01:00
lukaseder
7432f474a8 [#3734] Implement "C:/Program Files (x86)/Git/bin/sh.exe" as a default expression in matcher strategy rules 2015-02-10 11:18:13 +01:00
lukaseder
d0c5ea50cd [#4021] Some bugfixes 2015-02-08 19:44:17 +01:00
lukaseder
7cdbbe29f6 [#4021] Add a ScalaGenerator 2015-02-08 19:02:26 +01:00
Lukas Eder
ffc4ef5582 [#3882] Overload JavaGenerator.generateXXX() methods to contain a JavaWriter argument 2015-01-09 15:15:28 +01:00
lukaseder
dd8d3c76f3 Updated copyright to 2015 2015-01-09 08:57:16 +01:00
Lukas Eder
8f72523997 Updated copyright to 2015 2015-01-07 17:57:59 +01:00
Lukas Eder
1d657f258f [#1363] Generate a copy constructor for POJOs 2015-01-06 18:31:31 +01:00
lukaseder
ddb54f2942 [#3899] Compilation error in generated code when a sequence name ends
with $
2015-01-05 19:20:27 +01:00
lukaseder
5d7beb98ee [#3784] Add additional <global[XXX]References/> flags to prevent
generation of individual reference classes
2015-01-05 18:31:20 +01:00
lukaseder
fad02d294f [#3745] NullPointerException when <jdbc/> is not provided and
<database/> <name/> isn't provided either
2015-01-05 18:14:03 +01:00
lukaseder
6c845e9aac [#3877] Generated "fetchBy[ColumnName]" methods in DAOs shouldn't
Mode.POJO
2015-01-05 17:38:40 +01:00
lukaseder
02f20375f3 [#3336] Add code generation flag to enable / disable imports in
generated code
2014-12-30 18:00:23 +01:00
lukaseder
af55cca5ee [#3336] Add code generation flag to enable / disable imports in
generated code
2014-12-30 17:21:50 +01:00
lukaseder
43a0f0aa53 [#3880] Cannot access private JavaGenerator.newJavaWriter() method 2014-12-23 09:33:16 +01:00
lukaseder
6db5568fb9 [#2919] Distinguish various PostgreSQL versions in the PostgreSQL
family: 9.3, 9.4
2014-12-19 11:24:34 +01:00
Lukas Eder
0d0fef9b11 [#3860] Allow to specify defaults for all regular expression flags in the code generation configuration. Add CASE_INSENSITIVE to defaults 2014-12-17 16:29:23 +01:00
Lukas Eder
7aa41ef8bf [#3765] Add support for HANA 2014-12-17 16:27:56 +01:00
lukaseder
92a234a84a [#3845] NullPointerException in code generator when there is an empty
<inputSchema/> element in Oracle
2014-12-04 20:46:25 +01:00
lukaseder
b0b04d753a [#3831] <dateAsTimestamp/> deprecation warning is displayed even if the
flag is not active
2014-12-02 17:37:54 +01:00
lukaseder
038ac1bac4 [#3378] Error when fully qualifying PostgreSQL table-valued functions in
SELECT clauses
2014-11-26 08:36:32 +01:00
lukaseder
bc54d3ba36 [#3797] For table-valued functions, generate also a static method in
Tables.java
2014-11-24 10:51:39 +01:00
lukaseder
752feb4ff3 Release 3.6.0-SNAPSHOT 2014-11-24 09:48:14 +01:00
Lukas Eder
9416657847 Release 3.5.0 2014-11-21 16:01:43 +01:00
Lukas Eder
af78ccd484 [#3792] Code generator erroneously refers to "singleton instances" of tables in generated Javadoc 2014-11-21 16:01:36 +01:00
Lukas Eder
03058d4a3d [#3782] Add a method to create a org.jooq.util.Database by SQLDialect 2014-11-20 17:42:55 +01:00
Lukas Eder
ef39b04e18 [#3369] Render CAST(? AS DATE) for java.sql.Timestamp bind values that are bound to Oracle DATE columns 2014-11-17 11:50:49 +01:00
Lukas Eder
a5afce8508 [#3770] Deprecate <dateAsTimestamp/> 2014-11-14 17:35:41 +01:00
lukaseder
d501e8bd93 [#3756] Regenerate files only if there is a difference 2014-11-11 14:49:32 +01:00
Lukas Eder
0f5f67bf8c [#1380] Extract equals() and hashCode() generation into an overridable protected method. 2014-10-13 10:10:11 +02:00
Lukas Eder
107a02824d [#3668] Let GenerationTool also search absolute and relative paths 2014-10-06 18:20:42 +02:00
Lukas Eder
8d94027341 [#3669] Make the code generator's <database/> element optional 2014-10-06 18:06:50 +02:00
Lukas Eder
5cc7fc277b [#2155] Add Converter support to Routines and UDTs 2014-09-08 12:39:23 +02:00
Lukas Eder
0877a37084 [#2155] [#3624] Add Converter support to Routines and UDTs
- Updated API and code generator to fix compilation issues
- Integration tests not yet implemented
2014-09-05 17:05:49 +02:00
Lukas Eder
ccb0daadd7 [#1380] [#3613] Generate equals(), hashCode() on POJOs:
- Renamed XSD property to indicate that this applies only to POJOs
- Correctly handle arrays in hashCode() calculations
2014-09-02 17:56:57 +02:00
Zoltan Tamasi
9bf1073bae Use Arrays.equals() inside generated equals() methods. 2014-09-02 15:07:55 +02:00
Zoltan Tamasi
1a4e1c0964 Update GenerationTool 2014-09-01 17:21:44 +02:00
Zoltan Tamasi
629b878d01 Add codegen capability to create equals() and hashCode() methods for POJOs. 2014-09-01 15:21:08 +02:00
Lukas Eder
b00ffa16ec [#3599] Implement nicer formatting of @Generated annotation 2014-08-27 10:58:52 +02:00
Lukas Eder
d17ade77cf [#3598] If tables define their own comments, don't generate "This class is generated by jOOQ." in Javadocs 2014-08-27 10:51:39 +02:00
Lukas Eder
4a5105d405 [#3121] Skip code re-generation when schema is known to be the same 2014-08-26 13:33:22 +02:00
Lukas Eder
bf519b11f2 [#3596] Let code generator empty generated packages on a per-schema basis 2014-08-26 11:26:19 +02:00
Lukas Eder
865f50f5ed [#3566] Add GenerationTool.generate(String) to generate code from an XML string 2014-08-18 16:55:45 +02:00
Lukas Eder
a581727372 [#3569] The <database/> tag is no longer mandatory in the code generator configuration 2014-08-18 16:03:07 +02:00
Lukas Eder
5759f87f83 [#3567] Code generator error message refers to wrong XSD 2014-08-18 15:28:37 +02:00
Lukas Eder
3a117886ba [#3559] Propagate jOOQ-codegen's relations flag also to jOOQ-meta, to prevent (possibly expensive) queries to fetch relations 2014-08-15 14:13:01 +02:00
Lukas Eder
f1f099e3a5 [#3556] Generated Oracle Stored procedures do not reference types from other schemas 2014-08-13 15:41:56 +02:00
Lukas Eder
eba0cb2d44 [#3488] Compilation error in generated code, when a similar tables T_A and TA exist 2014-08-04 11:21:06 +02:00
Lukas Eder
5c7114d1e3 [#561] Add support for the Informix database - Bootstrapping integration tests 2014-07-29 16:32:11 +02:00
Lukas Eder
4da811b6bb [#3456] Name clash in generated code when Routine argument is called "f" (functions) or "p" (procedures) 2014-07-28 10:57:05 +02:00
Lukas Eder
44ac987073 [#3450] Backslashes is SQL comments don't get escaped 2014-07-25 17:04:44 +02:00
Lukas Eder
d1db55a556 [#3451] Add XMLDatabase to generate a database schema from an XML file - First draft 2014-07-25 16:38:44 +02:00
Lukas Eder
5c247d2165 [#3425] Add support for Oracle AQ 2014-07-18 18:45:08 +02:00
Lukas Eder
512be5b236 [#3370] Allow for overriding the class Javadocs for generated objects 2014-07-01 15:12:40 +02:00
Lukas Eder
521df3ff8b Fixed the Eclipse 'join_wrapped_lines' setting 2014-07-01 13:39:47 +02:00
Lukas Eder
55fa5d1daf Aagh... Eclipse o_O 2014-06-24 15:03:01 +02:00
Lukas Eder
82117d0e99 [#2886] jooq-codegen-maven should look into project dependencies for jdbc driver 2014-06-24 15:02:47 +02:00
Lukas Eder
1027d8734a [#3346] Allow for omitting the JDBC driver property in the code generator 2014-06-23 15:15:28 +02:00
Lukas Eder
0d5ac1f778 Release 3.5.0-SNAPSHOT 2014-06-23 09:57:20 +02:00
Lukas Eder
a511c45ad8 Release 3.4.0 2014-06-20 10:51:45 +02:00
Lukas Eder
83bfc3296f [#3117] jOOQ illegally generates covariant setters on UDTRecords and UDT Pojos when <pojos/> and <interfaces/> are activated 2014-06-17 14:24:18 +02:00
Lukas Eder
e83850b356 Added IntelliJ meta info to .gitignore 2014-06-06 14:58:11 +02:00
Lukas Eder
a507d50bc4 [#3154] Add code-generation configuration to generate synthetic primary keys for updatable views 2014-06-06 14:57:51 +02:00
Lukas Eder
d7c07da369 [#3018] Add <outputSchemaToDefault/> to support "default schemas" during code generation 2014-05-27 12:35:41 +02:00
Lukas Eder
2d3e032a11 [#3282] inputSchema / outputSchema codegen configuration has no effect in Oracle, if inputSchema is lower-cased 2014-05-27 12:34:12 +02:00
Lukas Eder
19710efc14 Upgraded Eclipse settings to reflect lambda and improved annotation formatting 2014-05-27 09:42:37 +02:00
Lukas Eder
591aa0f322 [#3233] Add DataTypeDefinition.getConverter() 2014-05-05 15:14:26 +02:00
Lukas Eder
fcd068dfb3 [#3202] Allow for Pattern.COMMENTS in code generation configuration's regexes 2014-04-26 13:59:07 +02:00
Lukas Eder
8448985e7a [#3176] Don't generate "assignment-constructors" for POJOs and Records
with more than 255 columns
2014-04-11 17:39:17 +02:00
Lukas Eder
a6c08048d4 [#3176] Don't generate "assignment-constructors" for POJOs with more than 255 columns 2014-04-11 15:42:50 +02:00
Lukas Eder
ab29b4a73f [#3130] Generated UDTRecords should be more similar to generated TableRecords 2014-03-12 20:21:08 +01:00
Lukas Eder
e2aa1bcda9 [#3128] Change ArrayRecord.setList(List<? extends E>) into ArrayRecord.set(Collection<? extends E>) 2014-03-12 19:44:08 +01:00
Lukas Eder
7c02149bf1 [#3125] Generate default ArrayRecord constructors that don't need a
Configuration
[#3126] Deprecate generated ArrayRecord constructors that take a
Configuration argument
2014-03-12 19:09:44 +01:00
Lukas Eder
50da819acb [#3108] Local Fields' Converters should be preferred over globally registered Converters 2014-03-08 13:57:48 +01:00