deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/4] git commit: Core: Fixed timestamps and make be_id not required
Date Mon, 14 Jan 2013 13:17:34 GMT
Core: Fixed timestamps and make be_id not required

The 'be_id' property should not be required globally,
since entities like MachineTemplate or VolumeConfig does
not have 'real' backend 'id' and they just exist in persistence
layer


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

Branch: refs/heads/master
Commit: a456f35b1df4ee9474fb32db665cd98e2275dab4
Parents: 190c4da
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Jan 14 13:47:14 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Jan 14 13:47:14 2013 +0100

----------------------------------------------------------------------
 server/lib/db/entity.rb |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a456f35b/server/lib/db/entity.rb
----------------------------------------------------------------------
diff --git a/server/lib/db/entity.rb b/server/lib/db/entity.rb
index 2f2afd7..f9b34ff 100644
--- a/server/lib/db/entity.rb
+++ b/server/lib/db/entity.rb
@@ -10,10 +10,9 @@ module Deltacloud
       property :type, Discriminator
 
       property :be_kind, String, :required => true # => Machine, MachineImage, ...
-      property :be_id, String, :required => true # => Original Machine 'id'
+      property :be_id, String # => Original Machine 'id'
 
-      property :created_at, DateTime
-      property :updated_at, DateTime
+      timestamps :created_at, :updated_on
     end
 
     class Entity < BaseEntity


Mime
View raw message