1525 Commits

Author SHA1 Message Date
Tapac
50848d672b QueryAlias.get(original: Expression<T>) lose query's alias #633 2020-02-27 01:14:18 +03:00
Tapac
f24107ae7e Support custom foreign key naming (#771).
Fix for the case when only referenced table used in create/createMissingTable
2020-02-26 23:14:52 +03:00
Tapac
34d9df83a1 HB not generate default value #810 2020-02-26 23:04:00 +03:00
Tapac
59465af04b Support custom foreign key naming (#771)
ForeignKeyConstraint fields documentation
2020-02-26 22:19:37 +03:00
Tapac
f6123e0ebe Minor improvements 2020-02-26 22:15:51 +03:00
Toshiaki Kameyama
1741416610 Support custom foreign key naming (#771) 2020-02-26 22:06:18 +03:00
Christophe Hesters
d512d18776 Correct precedence for arithmetic operators (#788)
* Add parentheses for arithmetic operators in sql builders

* Added unit test

* Re-use CustomOperator for arithmetic
2020-02-14 15:11:06 +03:00
hichem-fazai
cdbc588494 removing redundant code related to create sequence and adding [IF EXISTS] option in the "drop sequence" command. (#789)
* removing redundant code related to create sequence and adding [IF EXISTS] option to drop sequence

* indentation fix
2020-02-13 22:05:36 +03:00
dolgopolovwork
21e354d865 notInSubQuery functionality (#791) 2020-02-13 18:27:17 +03:00
Andrey.Tarashevskiy
f95c040ee6 JavaLocalDateTimeColumnType not setting nanoseconds correctly on Timestamp #793 2020-02-13 17:00:42 +03:00
Tapac
6b46eb033c Exposed 0.21.1 released 0.21.1 2020-02-08 14:59:07 +03:00
hichem-fazai
f2334534c1 changing the uuid check regexp (#779) 2020-02-08 14:56:41 +03:00
Juan José González Abril
54682c79c2 [KDoc & Format] Table & Columns (#778)
* Add KDoc, fix formatting and reorganize code.

Create backing property for property `indices` to avoid cast to `MutableList`.
Refactor code to use `mutableListOf()` instead of `ArrayList()`.
Replace guard clause with kotlin function call.
Improve computation of `columns` property in `Join` class, use `flatMap` instead of `fold` to reduce the number of list creations.
Remove unused type parameter from `addColumn()` method.
Add indentity check to `equals` method in `Table` class.

* Add KDoc, fix formatting and reorganize code.

Replace call to `assert` with call to `require`.
Improved table checker on `Index` creation.

* Add KDoc, fix formatting and reorganize code.

Refactor `valueFromDB` function from numeric `ColumnType`s: specific return type, string parsing and throwing excaption.

* Added missing documentation and finishing touches.
2020-02-08 11:44:19 +03:00
hichem-fazai
b597d0a5a6 Adding create and drop database methods (#782)
* Adding create and drop database method

* Correct Create database statement in postgesql dialect

* Correct Create database statement in oracle and sqlserver dialects
2020-02-06 14:26:14 +03:00
Tapac
efa78df1ea Unexpected value of type Int: 26 of org.jetbrains.exposed.dao.EntityID #501 2020-01-29 22:34:30 +03:00
Juan José González Abril
cfd14c5b86 [KDoc & Format] Database Dialects (#769)
* Add missing KDoc and format following the Kotlin Coding Convention

* Placed short comments in a single line

* Added property removed during merge in previous commit.
2020-01-25 19:32:49 +03:00
Andrey.Tarashevskiy
771a60f7e2 CustomOperator: minor code cleanup (#753) 2020-01-25 12:29:12 +03:00
François Gelineau
19d50073a5 Add a CustomOperator (#753) 2020-01-25 12:21:13 +03:00
Andrey.Tarashevskiy
11c237631d Support create sequence statement with all sequence options (#746)
Test to select value with sequecence added
2020-01-25 12:04:48 +03:00
Andrey.Tarashevskiy
05ffa6b1d9 Support create sequence statement with all sequence options (#746)
SQLServer jdbc driver doesn't support sequences in return values (https://github.com/microsoft/mssql-jdbc/issues/656)
Tests fixed
2020-01-25 11:08:36 +03:00
Andrey.Tarashevskiy
da1f4ff168 Wrong PK used in DML tests 2020-01-25 11:01:48 +03:00
Tapac
f26c1b15e3 Can't use eq on nullable entity column with non EntityID value (#773) 2020-01-24 02:06:06 +03:00
Tapac
c046988bb5 Code cleanup after moving tests 2020-01-24 02:06:06 +03:00
Tapac
cbcabf9b54 DMLTests.kt split into smaller test cases 2020-01-24 02:06:06 +03:00
Andrey.Tarashevskiy
cef964674c spring-configuration-metadata.json is not located inside exposed-spring-boot-starter.jar #767 2020-01-21 12:16:58 +03:00
Tapac
709917e102 Support create sequence statement with all sequence options (#746)
Minor code improvements
2020-01-17 02:21:57 +03:00
Tapac
dce5b5f157 Unify MySQL driver versions in tests 2020-01-17 02:09:53 +03:00
hichem-fazai
bd1e5d3d47 Support create sequence statement with all sequence options (#746) 2020-01-17 02:09:05 +03:00
Tapac
39cf32888a SQLServer driver 7.4.1 2020-01-13 14:42:05 +03:00
Tapac
d9c314b2df SQLServer driver is not available on Bintray 2020-01-13 14:34:20 +03:00
Tapac
18e07241cd H2 downgraded 1.4.200 -> 1.4.199 due to broken Repeatable Read + Select (https://github.com/h2database/h2database/issues/2191) 2020-01-13 14:17:59 +03:00
Tapac
b00711ae4d Test compilation fix after H2 update 2020-01-13 14:05:30 +03:00
Tapac
81687cd235 Release 0.20.3 2020-01-13 13:57:37 +03:00
Tapac
1c0e2c6f4a Drivers updated in tests 2020-01-13 13:57:16 +03:00
Tapac
aba172ae76 Revert "Fire EntityChange events immediately"
This reverts commit d2114006
2020-01-13 13:26:53 +03:00
Tapac
d21140063d Fire EntityChange events immediately 2020-01-11 11:14:51 +03:00
Tapac
179142f816 Update event wasn't fired on Entity.flush() 2020-01-11 11:09:32 +03:00
Tapac
762ba32504 Update event wasn't fired on Entity.flush() 2020-01-11 11:07:53 +03:00
Tapac
f50fcae2d0 Change string length check to use codePointCount (#745, #743)
SQLServer excluded from test
2020-01-10 02:08:39 +03:00
Tapac
a960350ab4 Flushing a new entity fails with an exception #761 2020-01-10 00:21:35 +03:00
Tapac
5c4b1e11f9 Custom enumeration not working with default value #750 / PostgreSQL test fixed 2020-01-07 16:31:53 +03:00
kenta.koyama
c435a2bc8d Add size property on ColumnMetadata class (#747)
* test getting column metadata correctly
* add size property on ColumnMetadata
2020-01-07 15:08:50 +03:00
hichem-fazai
3af66148d7 [SQLite] fixing a bug that happens when creating table with autoInc column and custom primarykey constraint name (#755) 2020-01-07 15:04:30 +03:00
Tapac
c897fdb455 Custom enumeration not working with default value #750 2020-01-04 00:20:36 +03:00
Tapac
d2db2c2ac8 Can't load implementation for DatabaseConnectionAutoRegistration #748 2020-01-03 23:26:02 +03:00
Tapac
53ff36250b Change string length check to use codePointCount (#745, #743)
Test enabled
2020-01-03 23:19:30 +03:00
(´⌣`ʃƪ)
f27b6c0199 Change string length check to use codePointCount (#745) 2020-01-02 15:32:32 +03:00
Andrey.Tarashevskiy
b417bc6fdc Exposed 0.20.2 release 2019-12-28 18:32:04 +03:00
Andrey.Tarashevskiy
05447ec198 Predefinded IntIdTable/LongIdTable/UUIDTable should respect deprecated primaryKey declaration. 2019-12-28 18:18:16 +03:00
Andrey.Tarashevskiy
0271b91a00 Add table name in warn message regarding of having both new and old primary key declarations 2019-12-28 18:16:45 +03:00