Releases: longevityframework/longevity
Releases · longevityframework/longevity
fix recently introduced bug in CassandraRepo
0.11.3 up project version to 0.11.3
downgrade ScalaTest to 2.2.6 til we fix regression
0.11.2 up version to 0.11.2
quell some cassandra warnings
0.11.1 up version to 0.11.1
0.11.0 - API Simplifications
[0.11.0] - 2016.08.29 - API Simplifications
- 2016.08.29 - Add factory methods for
EType
and all its
descendents. The older pattern of making embeddable companion
objects intoETypes
(e.g.,case class Email extends EType[Email]
) still works, but now you can just mention theEType
directly, when building your subdomain. (E.g.,Subdomain(???, ???, ETypePool(EType[Email]))
). - 2016.08.28 - Get rid of
DerivedType.polyType
and
DerivedPType.polyPType
.DerivedType
andDerivedPType
are now
abstract classes instead of traits, so users may need to reorder
their inheritancewith
clauses. (It's highly unlikely a user would
have been be using these traits to extend a class.)
0.10.0 - Optimistic Locking
[0.10.0] - 2016.08.25 - Optimistic Locking
- 2016.08.25 - Fix JSON translation of DateTimes to use time zone
codes instead of offsets. Fix JSON parser to respect the time zone
in the string representation of the DateTime. - 2016.08.24 - Add optimistic locking. To turn it on, you will need to
setlongevity.optimisticLocking = true
in your typesafe config. - 2016.08.23 - Add
LongevityContext.testDataGenerator
. - 2016.08.17 - Add support for
Persistents
andEmbeddables
that
are case objects. - 2016.07.29 - Add
LongevityConfig
for well-typed
configuration. Users can useLongevityConfig
instead of a Typesafe
Config to configure their context. Just use theLongevityContext
constructor instead of theLongevityContext.apply
factor method. - 2016.07.29 - Make
PType.indexes
optional. You used to have to
declare an emptyindexes
singleton object within yourPType
if
you had no indexes. Now, you can just leave it out. This should have
no effect on existing code, but you can go back and remove empty
indexes
objects if you want. - 2016.07.22 - Make Akka
Streams an optional
dependency. If you are usingRepo.streamByQuery
, you must now
declare a dependency on Akka Streams yourself:libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.4.9"
.
Fix longevityPomExtra
the info in the pom was broken due to an oversight. the longevity pom was pointing to emblem project. this release fixes that. there is not code changes whatsoever, just a fixed pom
0.9.0 - Streamlined API
- 2016.07.12 -
KeyVal
andKey
have been completely reworked for
improved understandability and ease of use. please see the manual
for details. - 2016.07.12 -
Assoc
s are gone. please useKeyVal
s andKey
s
instead. - 2016.07.12 - a
PType
's properties and keys are now only realized
when theSubdomain
is constructed. this should have no affect on
the user, except that some exceptions for malformed properties will
be delayed untilSubdomain
initialization. also, properties
created outside ofPType.propSet
will no longer work. - 2016.06.23 - shorthands are gone. please use single-property
embeddables such asValueObject
instead. - 2016.06.21 - single-property embeddables are now inlined. this has
no affect on the user other than how the persistents are translated
into JSON/BSON. - 2016.06.20 - add parent types
Embeddable
andEType
forEntity
,
ValueObject
,EntityType
, andValueType
. - 2016.06.10 - add noop query
Query.All()
. - 2016.06.07 - add method
Deleted.get
. - 2016.06.07 - fix method names
LiftFPState.mapRoot
,
LiftFPState.flatMapRoot
,LiftFOPState.mapRoot
, and
LiftFOPState.flatMapRoot
by replacingRoot
withP
. - 2016.06.01 -
CoreDomain
,SupportingSubdomain
and
GenericSubdomain
are now actual traits that extendSubdomain
(instead of just type aliases). this allows users to directly
subclass these three types if they wish.
Bug Fix Release
[0.8.1] - 2016.06.01 - Bug Fix Release
- 2016.06.01 - make Akka streams non-optional
dependency. difficult-to-resolve linking problems occur when this is
optional. we might revisit this later but for now the best solution
is to make it non-optional.
Streaming Queries
- 2016.05.24 - add API method
Repo.streamByQuery(query: Query[P]): Source[PState[P], NotUsed]
.
Entity Polymorphism
- 2016.05.18 - users can now subclass
Shorthand
. - 2016.05.12 -
PType
and sub-classes no longer take an implicit
ShorthandPool
argument. - 2016.05.12 -
Subdomain
,CoreDomain
,SupportingSubdomain
, and
GenericSubdomain
factory method signatures have changed. They now
have a single parameter list, and theShorthandPool
parameter is
no longer implicit. - 2016.05.12 -
Persistent
no longer inherits fromEntity
.PType
no longer inherits fromEntityType
. these changes should not
affect user code. - 2016.05.12 - modify
Subdomain.apply
to separate out
entityTypePool
intopTypePool
andentityTypePool
. - 2016.05.12 - add
PolyType
,DerivedType
,PolyPType
, and
DerivedPType
. see user manual. - 2016.05.12 - move the following classes from package
longevity.subdomain to package longevity.subdomain.entity:EntityTypePool
EntityType
Entity
ValueObject
ValueType