You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/01/14 14:17:34 UTC
[3/4] git commit: Core: Fixed timestamps and make be_id not required
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 <mf...@redhat.com>
Authored: Mon Jan 14 13:47:14 2013 +0100
Committer: Michal fojtik <mf...@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