ebean

Ebean ORM

APACHE-2.0 License

Stars
1.5K
Committers
104

Bot releases are visible (Hide)

ebean - 12.8.3

Published by rbygrave over 3 years ago

Issues:

#2220 - DDL generation of nullable columns expected with nullable Embedded containing non null properties
#2218 - @Encrypted columns on Oracle. The identifier alias starts with an underscore (ORA-00911)
#2219 - Compile error with ZonedDateTime and query beans - type argument java.time.ZonedDateTime is not within bounds of type-variable D

ebean - 12.8.2

Published by rbygrave over 3 years ago

Issues:

#2217 - Inserting an entity bean is skipped with a String @Id property and no other properties set
#2177 / #2216 - findNative not mapping bean when schema specified in entity mapping / Fix where schema not provided by JDBC driver
#2215 - Fix copy/paste typo in javadoc for endOr()
#2214 - Explicit locking method withLock() is unaccessible on query beans
#2212 - Add bitwise operators to query beans

Enhancements:

#2213 - Initial experimental support for autoPersistUpdates / "transparent persistence"

ebean - 12.8.1

Published by rbygrave over 3 years ago

Issues:

#2209 - Registering [default] as the default server but [default] is already registered as the default exception with hot-reload bug
#2208 - When using fetchCache() with a single id / findOne ... doesn't hit L2 cache bug
#2206 - Postgres DDL generation - for create index use "if not exists" clause
#2205 - [oracle] Incorrect DDL generated for alter table add column bug
#2204 - Honor setLazyLoadBatchSize() when using FetchConfig.ofLazy() of unspecified size bug

Enhancements:

#2211 - Improve query plan capture - Add default mechanism to log captured query plans
#2210 - Improve query plan capture - ability to change default threshold micros enhancement
#2207 - ENH: Query beans add support for nested FetchGroup enhancement
#2203 - Support use of Java Record type with @Entity, @Embeddable @IdClass enhancement

ebean - 12.8.0

Published by rbygrave over 3 years ago

reason-for-version-bump

Bumped the minor version as this has a change to generated ModuleInfo code for #2190

Issues:

#2199 - ScalarTypeWrapper doesn't handle "nullValue" correctly
#2198 - Feature/json assert compare arrays refactor
#2197 - [ebean-redis] - Bump jedis dependency to 3.5.2 (from 3.4.0)
#2195 - @Aggregation on OneToMany property not mapping to column properly
#2193 - Prevent registration of 2 default servers (2 Database that have defaultServer=true)
#2190 - Change ModuleInfoLoader API and querybean-generator for named default database
#2186 - Invalid generated table and column names of @ManyToMany relation with allQuotedIdentifiers=true bug
#2184 - Fetch on findNative does not fetch all the specified collections bug
#2183 - Added tests for findNative fetches bug

Enhancements:

#2200 - ENH: Add DtoQuery findEach with batch consumer - findEach(int batchSize, Consumer<List> consumer)
#2191 - ENH: Add Query findEach() with batch consumer enhancement
#2185 - ENH: add in(subQuery) support for query beans

ebean - 12.7.2

Published by rbygrave over 3 years ago

Issues:

#2181 - Oracle 9,10,11 rownum based limiting for SqlQuery and DtoQuery (rather than Oracle 12g row limiting)
#2182 - Tidy javadoc - this may mean JDK 15 is required to generate javadoc
#2177 - findNative not mapping bean when schema specified in entity mapping
#2179 - Fetch on nested one-to-many collections results in duplicates
#2180 - Improved fix for #2179 - Fetch on nested one-to-many collectio… refactor
#2178 - Add more assertions for nested one-to-many fetch bug

ebean - 12.7.1

Published by rbygrave over 3 years ago

reason-for-version-bump

#2162 - Change ebean artifact such that ebean-ddl-generator is a dependency of ebean-test and ebean-autotune optional dependencies

#2163 - Remove support for "query hints" like +query(50) behaviour change breaking-api

This version removes support of string "query hints" like +query(50). I don't believe anyone will be using this very old way of specifying a join to be a query join etc. We have been using fetchQuery() etc for a while now. Removal of the query hints lead to quite a bit of refactoring of the internals to improve the efficiency of calculating the orm query plan.

Bugs


#2174 - #2175 - Entity beans with @Cache + @DbArray of enums (or UUID or Integer) not converted to enums (come back as String) bug
#2165 - Joda LocalDate West of UTC converts incorrectly (Fix: change from epoc millis conversion to y/m/d conversion)
#2166 - Remove deprecated forUpdate(lockType) methods - migrate to withLock(lockType, waitType) deprecated-api
#2168 - Using ebean-test with redis container - hanging testing redis connectivity bug

Enhancements


#2169 - #2170 - #2171 - Support for jakarta.validation.constraints.NotNull and jakarta.validation.constraints.Size
#2173 - ebean-test: Add assertContains - DbJson.of(entityBean).assertContains(...) new-api
#2130 - Ignore special kotlin collection types behaviour change

Remove support for "query hints" like +query(50)


#2163 - Remove support for "query hints" like +query(50) behaviour change breaking-api
#2167 - Refactor query internals to reduce property parsing for partial select and fetch
#2164 - Deprecate the mutating methods of FetchConfig to migrate to the static factory methods deprecated-api
#2161 - Refactor FetchConfig - add static factory methods like e.g. FetchConfig.ofQuery(50)
#2159 - Improve internal calculation of orm query plan hash key (Require use of inline hints like +query(50) to be comma delimited with properties)

Dependency changes


#2162 - Change ebean artifact such that ebean-ddl-generator is a dependency of ebean-test and ebean-autotune optional dependencies

ebean - 12.6.7

Published by rbygrave over 3 years ago

Issues:

#2157 - ManyToMany mapping to itself results in broken generated SQL DDL when not defining @JoinTable. bug
#2156 - Using @OneToOne(targetEntity...) with Interface field results in BeanNotRegisteredException bug
#2160 - #2156 - Using @OneToOne(targetEntity...) with Interface field results… bug
#2158 - Oracle - automatic platform selection doesn't select older Oracle11Platform via jdbc metadata major version bug
#2155 - QueryBeans: Change to use own @Generated with retention RUNTIME refactor
#2154 - QueryBeans: TargetEntity is not evaluated during bean generation resulting in bad query beans bug
#2153 - QueryBeans: OneToMany Map property is handled as PScalar instead of TQAssocBean bug
#2127 - Adding a new list of children to @OneToMany with orphanRemoval true does not delete existing orphans bug
#2152 - Fix to only cancel query once bug

ebean - 12.6.6

Published by rbygrave over 3 years ago

Issues:

#2149 - ADD: jdbc batch flush doesnt execute sql statements created in lifecycle methods (e.g. beans saved in PostInsert etc) bug
#2147 - ADD: multiple to many outer joins cause wrong count in distinct count… bug
#2148 - PersistenceException: No ScalarType registered for class java.util.LinkedHashMap bug
#2146 - Cache with lazy load doesnt work bug
#2145 - SoftDelete predicate missing on join to ManyToOne supporting predicate expression bug
#2144 - Wrong beans in Persistcontext avoid proper lazy load bug

ebean - 12.6.5

Published by rbygrave almost 4 years ago

#2141 - Failing testcase that shows wipe of all old children on save with orphan removal (Aka revert of fix for #2127)

ebean - 12.6.4

Published by rbygrave almost 4 years ago

Issues:

#2140 - Bump ebean-migration dependency of ebean-ddl-generator to 12.4.0 (update ebean-test)
#2139 - Failing testcase that shows wipe of all children on save (orphan removal)
#2135 - ebean does not support Spring @Transactional(propagation = Propagation.REQUIRES_NEW)
#2138 - Mark Transaction.flushBatch() as deprecated - migrate to flush();
#2137 - Expected Transaction flush on SqlQuery and DtoQuery not occurring

ebean - 12.6.3

Published by rbygrave almost 4 years ago

Issues:

#2133 - Spring transactions not getting ChangeLog changeSet as part of postCommit() processing bug
#2134 - Modify ChangeLog to send the last set of changes Pre-Commit (rather than post commit). Expose this for spring transactions.
#2132 - Add ebean-redis as module
#2131 - #2127 - Adding a new list of children to @OneToMany with orphanRemoval true does not delete existing orphans
#2127 - Adding a new list of children to @OneToMany with orphanRemoval true does not delete existing orphans bug
#2129 - Ignore javax.persistence.Transient in query beans bug
#2128 - Bump avaje-config dependency to 1.3 - Fix for - Repeated calls to Config.get() with no value, expect to return passed default value

ebean - 12.6.2

Published by rbygrave almost 4 years ago

Issues:

#2126 - Bump ebean-migration to 12.4.0
#2125 - Bump ebean-test-docker dependency to 4.1
#2120 - DbEnumValue without database constraint enhancement
#2124 - ENH: Add name() attribute to @DbArray, @DbJson, @DbJsonB, @DbMap enhancement
#2123 - Modify BackgroundExecutor API - add scheduleWithFixedDelay() and mark executePeriodically() as deprecated
#2122 - Metrics for ElementCollection query not included in reporting (via MetaInfoManager) bug
#2121 - Refactor BackgroundExecutor add submit() methods returning Future refactor
#2118 - Generated code for @DbForeignKey reading onDelete and Ignores onUpdate bug
#2116 - Add Query.withLock(LockType) and withLock(LockType, LockWait)

ebean - 12.6.1

Published by rbygrave almost 4 years ago

Issues:

#2115, #2112, #2110 - Fix and test for executeBatch() on SqlUpdate - addBatch() does not auto flush
#2114 - Fix PreparedStatement leak when findEach() with invalid SQL
#2113, #2089, #2090 - Add support for Postgres lock types (no key, share, key share) with FOR UPDATE enhancement
#2108 - ebean-k8scache and ebean-cluster not invalidated when only remoteTableMod or remoteCacheEvent
#2107 - Refactor io.ebeaninternal.json.ModifyAwareOwner to io.ebean.ModifyAwareType
#2105 - Refactor extract interface DataBinder from DataBind, move ScalarType
#2106 - Refactor extract ebean-core-type module moving ScalarType and related interfaces to io.ebean.core.type

ebean - 12.6.0

Published by rbygrave almost 4 years ago

reason-for-version-dump

#2101 - Refactor to make ebean-migration optional dependency
#2100 - Refactor move io.ebean.dbmigration.DbMigration [generation] from ebean-api to ebean-ddlgen module

Issues:

#2104 - Refactor rename ebean-ddlgen module to ebean-ddl-generator
#2103 - Bump dependency avaje-config to 1.2 - no effective change, added JPMS Java module support
#2102 - Add to BOM entries for ebean-ddl-runner, ebean-datasource, ebean-migration, ebean-test-docker
#2101 - Refactor to make ebean-migration optional dependency
#2100 - Refactor move io.ebean.dbmigration.DbMigration [generation] from ebean-api to ebean-ddlgen module
#2099 - Refactor internals introduce use of ebean-ddl-runner
#2098 - Refactor simplify SequenceIdGenerator.loadInBackground() to use AtomicBoolean
#2097 - Split ebean-datasource dependency to ebean-datasource-api and ebean-datasource

ebean - 12.5.2

Published by rbygrave almost 4 years ago

Issues:

#2092 - Add support for mocking Database interface to MockiEbean
#2093 - Refactor remove isJava7Present() ... we are Java 8+ so Java 7 types are always present - Removing effectively redundant code
#2094 - Refactor remove isJavaTimePresent() ... we are Java 8+ so removing effectively redundant code
#2091 - Using Postgis types with query gives PersistenceException Caused by: java.sql.SQLException: Unhandled data type [6000] bind number[0]
#2085 - Refactor promote getDataSource() and getReadOnlyDataSource() to Database from SpiServer

ebean - 12.5.1

Published by rbygrave about 4 years ago

Issues:

#2082 - Scalar type querybeans generics error - bug
#2079 - Refactor to make Jackson core an optional dependency
#2081 - Refactor synchronized to ReentrantLock
#2080 - Refactor convert from sychronized to ReentrantLock to prepare for Loom
#2078 - Bump to avaje-config 1.1 - makes snakeyaml dependency optional
#2077 - Bump junit from 4.12 to 4.13.1 in /ebean-test

ebean - 12.5.0

Published by rbygrave about 4 years ago

reason-for-version-bump

Modularisation of Ebean.

Issues:

#2065 - Refactor SQL generation - remove excess whitespace (double spaces before where, join and order by)
#2062 - Update enhancement agent to use ASM 9

Modularisation of Ebean:

#2076 - Refactor DbDefaultValue internals - remove dependency on javax.xml.bind.DatatypeConverter for verify of value
#2075 - Refactor external mapping (i.e. named queries from ebean.xml etc) - extract api and separate module
#2074 - Refactor extract ebean-ddlgen module. In future this module would expected to be a test only dependency
#2073 - Refactor internals for DdlGenerator use use ServiceLoader
#2072 - Extract ebean-api module - NB: this includes moving ShutdownManager and small adjustment to DocStore/Elastic SPI
#2071 - Add ebean-bom module
#2070 - Rename ebean module to ebean-core, add top level ebean module
#2069 - Add ebean-querybean, querybean-generator and kotlin-querybean-generator as modules
#2068 - Add ebean-test as module
#2067 - Extract ebean-autotune into separate module
#2066 - Refactor move into ebean-core directory

What was ebean has been split into:

  • ebean-api - The public API with configuration and database platforms
  • ebean-core - Most of what was in ebean.jar
  • ebean-autotune - Extraction of the autotune feature which is strictly speaking optional
  • ebean-ddlgen - DDL generation for drop/create and migrations. This module can be just a test scope dependency.
  • ebean-externalmapping-api - API for loading named queries
  • ebean-externalmapping-xml - JAXB based loading of named queries via ebean.xml. This module is optional.
  • ebean - A composite of ebean-core, ebean-querybean and ebean-ddlgen (maybe ebean-ddlgen will removed in future so that it is test scope by default)

Other modules have been brought in from other repos:

  • ebean-test
  • ebean-querybean
  • querybean-generator
  • kotlin-querybean-generator
ebean - 12.4.2

Published by rbygrave about 4 years ago

Issues:

#2064 - Generated sql is missing a space near to the "dtype and softdelete" join-conditions when "fetch join" is used
#2063 - Updating bean - L2 Bean cache update + l2 cache update on "Many Ids" when they have not change - can lead to race
#2061 - Add failing testcase for wrong values retrieved from bean caching

ebean - 12.4.1

Published by rbygrave about 4 years ago

reason-for-version-bump

#2058 - .findVersionsBetween() for PG and MySql... should use inclusive/exclusive and it is instead is exclusive/exclusive

Issues:

#2058 - .findVersionsBetween() for PG and MySql... should use inclusive/exclusive and it is instead is exclusive/exclusive
#2059 - ENH: Add convenience expressions leOrNull() and geOrNull() ... [ property >= value or property is null ]
#2060 - Bump ANTLR to 4.8-1 (from 4.7.2) and add support for "leOrNull" and "geOrNull" expressions from #2059
#2010 - Update CsvCallback API to use Database instead of EbeanServer breaking-api
#2049 - Migrate to DatabaseConfig from ServerConfig refactor

ebean - 12.3.9

Published by rbygrave about 4 years ago

Issues

#2054 - Invalid SQL with History findVersions() on bean with @EmbeddedId - ... ORDER BY T0.NULL[*] ...
#2051 - Bump config dependency from io.avaje:config to io.avaje:avaje-config
#2044 Using @AttributeOverrides breaking generated SQL (when override nullable and no column name)

Refactor internals

#2055 - Refactor internals - Extract DbContext from Ebean and hold Database rather than EbeanServer
#2056, #2055 - Refactor internals - Extract DbContext from Ebean and hold Database rather than EbeanServer
#2052 - Refactor tidy internals - Use String.replace() rather than literal pattern replaceAll()
#2053 - Refactor tidy internals - Clean up StringHelper
#2050 - Refactor internals - remove dependency on java.beans refactor