Mercurial > hg > Members > nobuyasu > Consensus
annotate app/models/UserModel.java @ 7:2122c50278bd
add Global.java, ande models/*
author | one |
---|---|
date | Mon, 01 Oct 2012 18:51:30 +0900 |
parents | |
children | 7b314898fddd |
rev | line source |
---|---|
7 | 1 package models; |
2 | |
3 import com.tinkerpop.blueprints.Vertex; | |
4 | |
5 public class UserModel extends NodeModel { | |
6 | |
7 | |
8 | |
9 public UserModel(Vertex vertex) { | |
10 super(vertex); | |
11 } | |
12 | |
13 public Vertex setName(String name) { | |
14 this.vertex.setProperty(NAME, name); | |
15 return vertex; | |
16 } | |
17 | |
18 | |
19 | |
20 | |
21 } |