ebean

Ebean ORM

APACHE-2.0 License

Stars
1.5K
Committers
104

Bot releases are visible (Hide)

ebean - 11.21.1

Published by rbygrave about 6 years ago

Issues:

#1470 Change OnQueryOnly to default to OnQueryOnly.COMMIT behaviour change
#1467 Let enum arrays be saved as integers or strings

ebean - 11.20.2

Published by rbygrave about 6 years ago

Issues:

#1466 With ebean.dbSchema property (aka default db schema) we should not connection.setSchema() when running migrations

Enhancements:

#1468 ENH: Add built-in DDL generation for Postgres table partitioning (by day, week, month and year)
#1469 #1468 - ENH: Add built-in DDL generation for Postgres table partitioning (by day, week, month and year)

ebean - 11.20.1

Published by rbygrave about 6 years ago

Issues:

#1465 Add support for Postgres range partition DDL plus refactor xsd definitions that had got out of sync

ebean - 11.19.3

Published by rbygrave about 6 years ago

Issues:

#1462 DB Migration generation with Postgis types gives us non-strict geometry column DDL
#1464 NPE in PropertiesWrapper.internalGet(PropertiesWrapper.java:74) running multi-platform DB migration generation with ServerConfig that has no properties
#1463 NPE in MigrationModel.readMigrations() when running using File resources with no migration directory

ebean - 11.19.2

Published by rbygrave about 6 years ago

Issues:

#1461 @OneToMany with @JoinTable without table name does not default join table name
#1459 findNative with join to a @OneToMany ... does not map properly

Enhancements:

#1460 ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query

ebean - 11.19.1

Published by rbygrave over 6 years ago

Note that this effectively is a change in behaviour wrt migration generation and execution with MySql and SQL Server using stored procedures to deal with some the complexities involved in the DDL with those DB's.

Issues:

#1451 - DB Migration with helper stored procedures (for MySql and SQL Server)

ebean - 11.18.6

Published by rbygrave over 6 years ago

Issues:

#1454 FIX: support for ScalarTypeConverter and @Lob
#1457 Issue with @ManyToOne with @EmbeddedId where only some columns are insertable or updatable
#1456 io.ebean.annotation.NotNull not honored by @ManyToOne property
#1455 FIX: null handling in ScalarType.toBeanType

ebean - 11.18.5

Published by rbygrave over 6 years ago

Issues:

#1453 @Formula property included in DDL when on @Inheritance bean and without @Transient
#1452 Deleting a bean does not invalidate the bean cache (Regression from 11.18.1 - introduced by #1427)
#1449 Failing testcase with lazy fetch (when logical property name starts with underscore)
#1450 Fix Transaction Flushing when ID Property is Loaded

ebean - 11.18.4

Published by rbygrave over 6 years ago

Issues:

#1447 Delete query ... should honour cascading delete if defined bug

ebean - 11.18.3

Published by rbygrave over 6 years ago

Issues:

#1444 JSON parsing with inheritance - java.lang.UnsupportedOperationException: cannot create entity bean for abstract entity ...

Enhancements:

#1443 Bump ebean-migration to 11.7.1 (which adds JdbcMigration support and "I" run first repeatable migrations)

ebean - 11.18.2

Published by rbygrave over 6 years ago

Issues:

#1442 Add support to set ebean.dbSchema ... (~ default DB schema) with create-all.sql and DB migrations (so it all just works)
#1435 Migration enum drop check constraints

ebean - 11.18.1

Published by rbygrave over 6 years ago

API Changes:

#1434 Remove deprecated API from EbeanServer - finder methods that take explicit transaction. Migrate to use ebeanServer.extended()
#1417 Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL

Issues:

#1441 Update ebean-dbmigration.xsd adding missing alterForeignKey element
#1439 IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.Sql@315df4bb
#1438 Mapping of @ElementCollection with an Enum that is otherwise not used produces error
#1437 or(expr, expr) ... where expr has a ToMany should produce a LEFT JOIN (and instead we only get JOIN) #1436 PersistenceException: Query threw SQLException:No ScalarType registered for class java.util.Arrays$ArrayList Query was:select id, name from o_customer where id = any(?)
#1431 Refactor internals for RemoteTransactionEvent binary serialisation
#1432 Refactor internals for RemoteTransactionEvent / BeanPersistIds ... to not send inserted ids
#1433 Remove io.ebeaninternal.api.SpiContainerBootup ... which was replaced by io.ebean.config.AutoConfigure
#1429 #1427 - QueryCache should be cleared, if one of a dependent bean is u…

ebean - 11.17.5

Published by rbygrave over 6 years ago

Issues:

#1430 Regression (from 11.10.1) - DataSource user not set ... due to PrimaryServer System.setProperty("ebean_db", defaultServerName);
#1425 Stateless update with OneToMany with SoftDelete and deleteMissingChildren = true ... does a hard delete
#1424 Deprecate / Move ... finder methods that take explicit transaction to ExtendedServer API

Enhancements:

#1428 ENH: Use java.time.Clock for @WhenModified and @WhenCreated and allow it to be Replaceable for testing
#1426 ENH: Add bitwiseNot expression ... e.g. bitwiseNot("flags", BwFlags.HAS_COLOUR)

ebean - 11.17.4

Published by rbygrave over 6 years ago

Issues:

#1422 FIX: applied history drops were not recognized
#1423 Close resources - InputStream of entity bean properties of File type
#1421 Nested programatic transaction using autoclose / try with resources ... does not end()/rollback() the parent/outer transaction
#1419 Refactor - saveAll() and deleteAll() ... when collections are empty skip transaction init check
#1400 Postgres @History table sys_period empty with multiple updates

Enhancements:

#1420 ENH: Add a ServiceLoader mechanism to configure ServerConfig - io.ebean.config.ServerConfigProvider
#1418 Add saveAll() and deleteAll() to io.ebean.BeanRepository

ebean - 11.17.3

Published by rbygrave over 6 years ago

Issues:

#1414 Support dynamic aggregate formula without alias e.g. query.select("date, sum(totalKms), sum(hours)")
#1415 Add asDto(Class dtoClass) ... to ExpressionList to support fluid style

ebean - 11.17.2

Published by rbygrave over 6 years ago

Issues:

#1412 Fix Resource leaks for properties & yaml files etc
#1410 IOUtils is no longer used, using java 1.7 StandardCharsets makes Enco…
#1408 Incorrect SQL when @Aggregation formula matches the property - sum(t0.sum(totalKms))
#1404 Query.findCount() with query.setDistinct(true) ... doesn't give count distinct SQL query

Enhancements:

#1407 ENH: Add SqlQuery RowMapper and RowConsumer ... for raw JDBC ResultSet mapping and consuming
#1406 ENH: Add SqlQuery.findSingleAttributeList() ... for returning lists of scalar values via SqlQuery
#1405 ENH: Add SqlQuery.findSingleAttribute() ... for returning single scalar values via SqlQuery

ebean - 11.17.1

Published by rbygrave over 6 years ago

The version bumped to 11.17.x due to #1402 with the new SPI for capturing SQL logging messages for testing

Issues:

#1402 Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
#1401 FOR UPDATE queries inside a transaction are not honored when beans are already cached (in the persistence context)
#1399 Beautify bindNoLog format
#1398 Support EQ / "Equal to" predicate on client side encrypted entity property - @Encrypted(dbEncryption = false)
#1397 @DbForeignKey(noConstraint = true) is ignored on @ManyToMany ... foreign constraints still added

ebean - 11.16.1

Published by rbygrave over 6 years ago

Issues:

#1392 MergeOptionsBuilder setClientGeneratedIds() ... should not be required if the Id property does not have Identity/Sequence generator assigned
#1396 merge() with ManyToMany throwing error Referential integrity constraint violation
#1393 MergeOptionsBuilder build() return MergeOptions interface type
#1391 Fix create reference bean on abstract class

Enhancements:

#1395 ENH: Add addBatch() and executeBatch() to SqlUpdate ... alternative to changing transaction batch mode #1394 ENH: Add merge() API (using default merge options) to EbeanServer, Ebean and BeanRepository

ebean - 11.15.12

Published by rbygrave over 6 years ago

Issues:

#1389 FIX: jsonRead of transient maps - to skip the read of start_array - Avoid error "Unexpected token start_object - expecting start_array "

Enhancements:

#1390 ENH: Support explicit @Id @GeneratedValue ... mapping (where absence of @GeneratedValue means externally supplied id values)

ebean - 11.15.11

Published by rbygrave over 6 years ago

Issues:

#1388 AutoTune - tuned query includes "null" as fetched property
#1387 Revert #1374 and expose io.ebean.event.ServletContextListener (as public API)
#1384 Change MigrationXmlWriter to not write (as it is not needed/expected now)
#1380 Make javax.xml an optional dependency (as it is not part of JDK from 9 onwards)
#1367 Modularized project cannot locate ebean.properties file on Java 10

Enhancements:

#1386 ENH: For DbMigration generation - add support for setting version, name, generatePendingDrop, applyPrefix, ddl header enhancement
#1368 Bean "not enhanced" error in modularized project after successful enhancement on Java 10