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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
1 package models;
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
2
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
3 import com.tinkerpop.blueprints.Vertex;
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
4
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
5 public class UserModel extends NodeModel {
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
6
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
7
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
8
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
9 public UserModel(Vertex vertex) {
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
10 super(vertex);
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
11 }
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
12
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
13 public Vertex setName(String name) {
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
14 this.vertex.setProperty(NAME, name);
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
15 return vertex;
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
16 }
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
17
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
18
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
19
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
20
2122c50278bd add Global.java, ande models/*
one
parents:
diff changeset
21 }