-
Archives
- May 2018
- July 2017
- June 2017
- May 2017
- April 2017
- November 2016
- June 2016
- May 2016
- April 2016
- December 2015
- July 2015
- June 2015
- March 2015
- April 2014
- August 2013
- June 2013
- April 2013
- February 2013
- January 2013
- July 2012
- November 2011
- August 2011
- March 2011
- February 2011
- January 2011
- November 2010
- July 2010
- June 2010
- April 2010
- March 2010
- January 2010
- November 2009
- April 2009
- February 2009
- January 2009
- October 2008
-
Meta
Author Archives: datanucleus
RDBMS Column Adapters : encrypting fields
A feature that DataNucleus has had since day 1 has recently been documented. Let’s take the example of having a class Person something like this public class Person { Long id; String name; … } By default, when … Continue reading
Posted in Uncategorized
Leave a comment
DN v5.1 : CDI injected AttributeConverters and event listeners
JPA and JDO API’s introduced the concept of an AttributeConverter which can be used to define how a type is persisted into the datastore, converting from the Java (field) type to a datastore (column) type. All such AttributeConverter classes defined … Continue reading
Posted in Uncategorized
Leave a comment
DataNucleus performance through the releases
Performance isn’t always the primary motivation when we are developing DataNucleus, but it always remains something that we bear in mind when introducing features or rationalising the APIs. As an interesting comparison of how performance has changed since version 3.x … Continue reading
Posted in Uncategorized
6 Comments
DN v5.1 : Meta Annotations
With normal JDO or JPA usage you may have annotated a class like this @Entity @DatastoreId public class Person { … } So we have a class that is JPA persistable, and is using the DataNucleus “datastore-identity” extension, providing a … Continue reading
Posted in Uncategorized
Leave a comment
DN v5.1 : Find by unique key
With JDO and JPA APIs you have the ability to find individual objects using their “identity”. This “identity” may be a field value for a single field that defines the primary key, or may be an identity object representing a … Continue reading
Posted in Uncategorized
Leave a comment
@Repeatable annotations for JDO and JPA
DataNucleus now provides access to Java8 @Repeatable annotations for use with JDO and JPA. Previously, if you wanted to specify, for example, multiple indexes for a class using annotations, you would have to do it like this (for JDO) using … Continue reading
Posted in Uncategorized
Leave a comment
DN v5 : Multi-tenancy improvements
JDO and JPA APIs don’t define any support for multi-tenancy, other than where you want to have 1 PMF/EMF per tenant and they have their own database or schema. DataNucleus introduced support for multi-tenancy using the same schema back in … Continue reading
Posted in Uncategorized
Leave a comment
DN v5 : Improved support for Enum persistence
With standard JDO and JPA you can persist a Java enum field as either the name (String-based column) or the ordinal (Number-based column). This is great as far as it goes, so we can easily persist fields using this enum. … Continue reading
Posted in Uncategorized
Leave a comment
DN v5 : Support for Java8 “Optional”
Java 8 introduces a class (java.util.Optional) that represents either a value or null. DataNucleus v5 has a requirement of Java 8, and adds support for persisting and querying fields of this type. Let’s suppose we have a class like this … Continue reading
Posted in Uncategorized
Leave a comment
DN v5 : JPA with “nondurable” identity
With standard JPA you only have the ability to have “application” identity for an entity (i.e field(s) marked as being part of the primary-key). Some time ago we added vendor extension support for having a surrogate (datastore) identity for an … Continue reading
Posted in Uncategorized
Leave a comment