polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject zest-qi4j git commit: Deprecating the Conversion library, as UnitOfWork now provides this functionality.
Date Thu, 09 Jul 2015 07:16:44 GMT
Repository: zest-qi4j
Updated Branches:
  refs/heads/develop f9cc087fe -> fea281bd4


Deprecating the Conversion library, as UnitOfWork now provides this functionality.


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/fea281bd
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/fea281bd
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/fea281bd

Branch: refs/heads/develop
Commit: fea281bd41a9f0ef0a2b930a3c0db52bda78264e
Parents: f9cc087
Author: Niclas Hedhman <hedmann@betfair.com>
Authored: Thu Jul 9 10:16:36 2015 +0300
Committer: Niclas Hedhman <hedmann@betfair.com>
Committed: Thu Jul 9 10:16:36 2015 +0300

----------------------------------------------------------------------
 libraries/conversion/src/docs/conversion.txt                  | 7 ++++++-
 .../org/qi4j/library/conversion/values/EntityToValue.java     | 3 +++
 .../library/conversion/values/EntityToValueAssembler.java     | 2 ++
 .../qi4j/library/conversion/values/EntityToValueService.java  | 2 ++
 .../org/qi4j/library/conversion/values/ValueToEntity.java     | 1 +
 .../library/conversion/values/ValueToEntityAssembler.java     | 2 ++
 .../qi4j/library/conversion/values/ValueToEntityMixin.java    | 2 ++
 .../qi4j/library/conversion/values/ValueToEntityService.java  | 2 ++
 8 files changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/docs/conversion.txt
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/docs/conversion.txt b/libraries/conversion/src/docs/conversion.txt
index 8147660..90f26f9 100644
--- a/libraries/conversion/src/docs/conversion.txt
+++ b/libraries/conversion/src/docs/conversion.txt
@@ -18,13 +18,18 @@
 ///////////////////////////////////////////////////////////////
 
 [[library-conversion, Conversion Library]]
-= Conversion =
+= Conversion - DEPRECATED =
 
 [devstatus]
 --------------
 source=libraries/conversion/dev-status.xml
 --------------
 
+DEPRECATED: This functionality is now present in <<def-unitofwork>> as
+the two methods toEntity() and toValue(). Since this library was written
+assocations of all kinds are now fully supported in Values.
+
+
 The Conversion Library provides support for converting composite types.
 
 include::../../build/docs/buildinfo/artifact.txt[]

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValue.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValue.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValue.java
index 5d0fe0a..d09eb3e 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValue.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValue.java
@@ -50,6 +50,9 @@ import static org.qi4j.library.conversion.values.Shared.STRING_COLLECTION_TYPE_S
 import static org.qi4j.library.conversion.values.Shared.STRING_MAP_TYPE_SPEC;
 import static org.qi4j.library.conversion.values.Shared.STRING_TYPE_SPEC;
 
+/**
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toValue(Class, Identity)}
instead.
+ */
 @Mixins( EntityToValue.EntityToValueMixin.class )
 public interface EntityToValue
 {

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueAssembler.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueAssembler.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueAssembler.java
index f3eee29..686204f 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueAssembler.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueAssembler.java
@@ -17,6 +17,7 @@
  */
 package org.qi4j.library.conversion.values;
 
+import org.qi4j.api.entity.Identity;
 import org.qi4j.bootstrap.Assemblers;
 import org.qi4j.bootstrap.AssemblyException;
 import org.qi4j.bootstrap.ModuleAssembly;
@@ -24,6 +25,7 @@ import org.qi4j.bootstrap.ServiceDeclaration;
 
 /**
  * EntityToValue Service Assembler.
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toValue(Class, Identity)}
instead.
  */
 public class EntityToValueAssembler
     extends Assemblers.VisibilityIdentity<EntityToValueAssembler>

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueService.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueService.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueService.java
index 67ae231..19b4534 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueService.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/EntityToValueService.java
@@ -17,6 +17,7 @@
  */
 package org.qi4j.library.conversion.values;
 
+import org.qi4j.api.entity.Identity;
 import org.qi4j.api.service.ServiceComposite;
 
 /** The EntityToValueService converts Entities to matching Values.
@@ -45,6 +46,7 @@ import org.qi4j.api.service.ServiceComposite;
  * <p>
  * If a Property from the Entity is not found in the Value, then it is ignored.
  * </p>
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toValue(Class, Identity)}
instead.
  */
 public interface EntityToValueService extends EntityToValue, ServiceComposite
 {

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntity.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntity.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntity.java
index 559fb37..f42fb28 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntity.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntity.java
@@ -23,6 +23,7 @@ import org.qi4j.functional.Function;
 
 /**
  * Create or update Entities from matching Values.
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toEntity(Class, Identity)}
instead.
  */
 public interface ValueToEntity
 {

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityAssembler.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityAssembler.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityAssembler.java
index e560b2c..be861ee 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityAssembler.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityAssembler.java
@@ -15,6 +15,7 @@
  */
 package org.qi4j.library.conversion.values;
 
+import org.qi4j.api.entity.Identity;
 import org.qi4j.bootstrap.Assemblers;
 import org.qi4j.bootstrap.AssemblyException;
 import org.qi4j.bootstrap.ModuleAssembly;
@@ -22,6 +23,7 @@ import org.qi4j.bootstrap.ServiceDeclaration;
 
 /**
  * ValueToEntity Service Assembler.
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toEntity(Class, Identity)}
instead.
  */
 public class ValueToEntityAssembler
     extends Assemblers.VisibilityIdentity<ValueToEntityAssembler>

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityMixin.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityMixin.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityMixin.java
index 0433ea8..73bae55 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityMixin.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityMixin.java
@@ -52,6 +52,8 @@ import static org.qi4j.library.conversion.values.Shared.STRING_TYPE_SPEC;
 
 /**
  * ValueToEntity Mixin.
+ *
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toEntity(Class, Identity)}
instead.
  */
 public class ValueToEntityMixin
     implements ValueToEntity

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/fea281bd/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityService.java
----------------------------------------------------------------------
diff --git a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityService.java
b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityService.java
index 824c1d6..2d2fa7d 100644
--- a/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityService.java
+++ b/libraries/conversion/src/main/java/org/qi4j/library/conversion/values/ValueToEntityService.java
@@ -15,10 +15,12 @@
  */
 package org.qi4j.library.conversion.values;
 
+import org.qi4j.api.entity.Identity;
 import org.qi4j.api.mixin.Mixins;
 
 /**
  * Service that creates or updates Entities from matching Values.
+ * @deprecated Please use {@link org.qi4j.api.unitofwork.UnitOfWork#toEntity(Class, Identity)}
instead.
  */
 @Mixins( ValueToEntityMixin.class )
 public interface ValueToEntityService


Mime
View raw message