KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > examples > dbaccess > src > Person


1 package spoon.examples.dbaccess.src;
2
3 import spoon.examples.dbaccess.annotation.DBAccess;
4 import spoon.examples.dbaccess.annotation.DBType;
5
6 @DBAccess(type = DBType.RELATIONAL, database = "test", username = "renaud", password = "", tableName = "c_instances")
7 public class Person {
8
9     String JavaDoc key;
10
11     public Person(String JavaDoc key) {
12         this.key = key;
13     }
14
15     public String JavaDoc getLastName() {
16         return null;
17     }
18
19     public String JavaDoc getFirstName() {
20         return null;
21     }
22
23 }
24
Popular Tags