Cool and thanks Matt!

I'm very much +1 on this one.

On 02/12/2013 11:42 PM, Matt Franklin wrote:
During the MongoDB support work, I created a DataImporter that
deserializes a JSON file and uses the Repositories to save initial
bootstrap data into the database.  I have just finished making this
model compatible with JPA.  What would everyone think about making
this the primary supported method for the demo binary data?

IMO, JSON is much easier to maintain than a SQL file and the current
version is actually a serialization of the objects created by
initial-data.sql (with some tweaks).  This method also should work
regardless of the underlying repository type, which means we only need
to maintain one data file.


Reply via email to