Rob Bygrave
24b99d065a
Merge branch 'master' into ebean-15x
2024-02-19 22:43:41 +13:00
Rob Bygrave
589e198301
#3268 - @DbComment on @ManyToOne fields are ignored (ddl-generator)
2023-11-21 23:53:29 +13:00
Rob Bygrave
f032aad22e
#3269 - @JoinColumns set ForeignKey is none in ddl , but is not work
2023-11-21 23:40:21 +13:00
robin.bygrave
db7fbd5246
Merge branch 'master' into ebean-15x
2023-11-07 15:39:06 +13:00
Rob Bygrave
1f9cf1e4b7
Split DatabaseBuilder interface separating the setters n getters adding DatabaseBuilder.Settings
...
So DatabaseBuilder.Settings has all the getters for code looking to read
the configuration that has been set. So DatabaseBuilder now just has the
setter methods.
Use DatabaseBuilder.settings() to access the settings and read the config
that has been set.
2023-11-03 22:58:11 +13:00
Rob Bygrave
12029ed06e
Refactor extract interface DatabaseBuilder from DatabaseConfig
...
First step in supporting the builder pattern for creating Database
2023-11-03 21:17:55 +13:00
Rob Bygrave
7316fb8f1d
[15x] Remove Inheritance support
2023-10-11 22:55:36 +13:00
Rob Bygrave
66d29a7f0c
[15x] Remove Draftable support
2023-10-11 22:54:05 +13:00
Rob Bygrave
ff43672f4e
Move source to Jakarta (use ./jakarta-to-javax.sh)
...
Moving the master branch to use jakarta based code and
dependencies. Change to use ./jakarta-to-javax.sh to convert
back to javax when releasing that.
2023-09-11 23:31:01 +12:00
Roland Praml
dede93ca62
Use char-append instead of String-append
2023-08-21 08:22:18 +02:00
Jonas Pöhler
6ce5e865ca
FIX: also include foreign keys without index in drop statement
2023-08-16 11:59:50 +02:00
Roland Praml
f63b013ef9
Added and fixed tests
2023-06-14 18:14:12 +02:00
Roland Praml
81443b77bc
Fixes for Clickhouse platform
2023-06-14 17:16:14 +02:00
Roland Praml
2867c50090
Do not convert explicit defined column definitions
2023-06-14 17:16:14 +02:00
Rob Bygrave and GitHub
e26fbbb11f
Merge branch 'master' into feature/postgres-dll-addColumn-ifNotExists
2023-05-25 20:25:54 +12:00
robin.bygrave
ecf650c9bc
Postgres DDL - Use IF NOT EXISTS with ADD COLUMN
2023-05-25 20:22:18 +12:00
robin.bygrave
b27b4e7038
Postgres DDL - Don't use cast when just changing varchar column size
2023-05-25 20:00:36 +12:00
Roland Praml
82a6ec6957
Fix also other places
2023-04-26 11:11:12 +02:00
Rob Bygrave
e1522df8a5
Fix for #3012 Manual server shutdown leads to memory leak
...
The issue being that shutdown() // with no args was
not calling ShutdownManager.unregisterDatabase(this)
noting that shutdown(boolean, boolean) did.
This change merges the old shutdownInternal(boolean, boolean)
method into shutdown(boolean, boolean) and simplifies
shutdown() to just call shutdown(boolean, boolean).
2023-03-29 20:59:23 +13:00
Jonas Pöhler
2633cd6bfe
FIX: drop foreign keys before dropping tables
2023-01-13 15:35:54 +01:00
Roland Praml
f4c747c6af
FIX: LogFormat for SystemLogger
2022-10-25 08:52:15 +02:00
Rob Bygrave
39de9d56db
#2825 - DB Migration - create schema migration is repeated unnecessarily
2022-09-07 19:55:43 +12:00
Noemi Praml
8fe6de376d
Fix sqlserver stored procedures - reserved keywords
...
(cherry picked from commit 09bcf6dbb9 )
2022-09-02 12:58:02 +02:00
Noemi Praml
808ba719f4
Fix mariadb, mysql stored procedure usp_ebean_drop_column - reserved keywords
...
(cherry picked from commit b0df177509 )
2022-09-02 11:53:33 +02:00
Noemi Praml
117844b5ee
Fix Unittests with drop not null
...
(cherry picked from commit 98e0e3b9ca )
2022-09-02 10:49:39 +02:00
Noemi Praml
fbb73d465c
FIX DB2 migration: reorg table must be called after drop not null
2022-09-02 10:49:25 +02:00
Rob Bygrave
26f0605d72
Refactor ScalarType methods from getters to accessors
2022-08-25 12:25:38 +12:00
Rob Bygrave
456086fb3c
Refactor DatabasePlatform - rename getters to accessors
...
Although this is public API these getters are not expected to be used
by application code so, I feel comfortable making this change.
2022-08-25 10:34:39 +12:00
Rob Bygrave
4252445eb4
Use AppLog and System.Logger for logging - static imports
2022-08-23 15:18:46 +12:00
Rob Bygrave
a23f241fff
Use AppLog and System.Logger for logging rather than slf4j-api
...
The avaje-applog-slf4j dependency means this is still using
slf4j-api for implementation. Remove that dependency and
service load the desired implementation.
2022-08-18 22:44:31 +12:00
Rob Bygrave and GitHub
73bc9e516e
Revert "Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)"
2022-08-15 15:14:57 +12:00
Rob Bygrave and GitHub
a6304ebe8b
Merge pull request #2722 from ebean-orm/feature/jakarta-jaxb
...
Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)
2022-08-03 20:34:55 +12:00
Roland Praml
dab428ead5
Fix: DDL will get wrong hint for special migration
2022-07-28 15:10:37 +02:00
Rob Bygrave
5f6efd29ef
#2743 - Postgres DDL - For create table, improve column ordering for tighter storage
2022-07-07 22:06:21 +12:00
Rob Bygrave
110bc614e4
#2743 - Postgres DDL - For create table, improve column ordering for tighter storage
2022-07-07 13:45:06 +12:00
Rob Bygrave
fbae9cad8a
#2742 - ModelContainer.applyChangeSet(ModelContainer.java:167) - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.CreateSchema
2022-07-07 12:03:39 +12:00
Rob Bygrave
2d65a3f1c9
Migrate to Jakarta JAXB (jakarta.xml.bind <- javax.xml.bind)
2022-06-17 18:10:14 +12:00
Rob Bygrave
afdb1df7ce
Testing nuodb 4.3.2, but it isn't supporting getGeneratedKeys for jdbc batch inserts
...
That breaks a lot of tests
2022-06-16 23:32:04 +12:00
Rob Bygrave
403556d8b2
DDL - Refactor DDL for Postgres and YugabyteDB to just create a default partition table
...
Removes the need and use of PostgresPlatform.tablePartitionsExist() and PostgresPlatform.tablePartitionInit() altogether.
2022-06-14 16:00:54 +12:00
Rob Bygrave
06ad2edfc1
#2718 - [Yugabyte] Fix such that builtin table partition functions are included in DDL (when we use table partitioning)
2022-06-14 15:39:34 +12:00
Rob Bygrave
68680ffd34
#2702 - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.RenameTable
...
Add support for applying the RenameTable change to the model.
2022-05-24 10:48:38 +12:00
Rob Bygrave
74b4994221
#2701 -[DDL] Postgres DDL generation for table partitioning with schema - helper method to add partitions does not work
...
This also removes the helper partition_init() stored function as it isn't really needed now that postgres has default partition support (since PG11 actually, partition_init predates PG11).
2022-05-23 20:39:45 +12:00
Rob Bygrave
7fbc1f8111
Postgres DDL - With Postgres table partitioning, add partition column to primary key
...
- Postgres DDL generation
- Using table partitioning
- There is a primary key defined that doesn't contain the partition column
In DDL generation, automatically add the partition column to the DB primary key.
2022-05-17 21:39:06 +12:00
Rob Bygrave
ceac2d12b1
#2694 - Postgres DDL - For Postgres table partitioning, remove the "suppressPrimaryKeyOnPartition" mode
2022-05-16 21:48:19 +12:00
Rob Bygrave
cc7f3d49a4
No effective change, tidy whitespace
2022-05-16 21:35:46 +12:00
Rob Bygrave
71b7aa5946
DDL - Add support for creating schema via database migrations (and create all ddl)
...
Initially for H2 and Postgres, with commented out DDL for other platforms.
2022-05-16 21:17:41 +12:00
Rob Bygrave
356af08f68
Tidy internal MTable only for test only constructor (remove @Deprecated)
2022-04-20 21:22:23 +12:00
Rob Bygrave
24d8f38b1d
#2374 - Bump to Java 11 and module-path
2022-03-31 08:42:14 +13:00
Rob Bygrave
e71e16c1ee
Refactor extract separate modules for each platform from ebean-api dbplatform
2022-03-30 17:11:36 +13:00
Rob Bygrave
5c3b680c8a
#2612 - Incorrect DDL generation for MySql on history tables that use quoted identifiers
2022-03-28 13:05:59 +13:00