Moti Asayag has uploaded a new change for review.

Change subject: core: VmTemplate implements Nameable
......................................................................

core: VmTemplate implements Nameable

The VmTemplate implements the Nameable interface to allow
accessing its name by utils classes.

Change-Id: I2be94cc80077974ef9d94b228478d42371c389d7
Signed-off-by: Moti Asayag <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmTemplate.java
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/52/10752/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmTemplate.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmTemplate.java
index 804c92d..7dc825b 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmTemplate.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmTemplate.java
@@ -33,7 +33,7 @@
 @Entity
 @Table(name = "vm_templates")
 @TypeDef(name = "guid", typeClass = GuidType.class)
-public class VmTemplate extends VmBase {
+public class VmTemplate extends VmBase implements Nameable {
     private static final long serialVersionUID = -522552511046744989L;
 
     @Transient
@@ -257,4 +257,9 @@
     public int hashCode() {
         return getId().hashCode();
     }
+
+    @Override
+    public String getName() {
+        return getname();
+    }
 }


--
To view, visit http://gerrit.ovirt.org/10752
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2be94cc80077974ef9d94b228478d42371c389d7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to