PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/com/google/appengine/datanucleus/test/HasDoubleJPA.java

http://datanucleus-appengine.googlecode.com/
Java | 49 lines | 24 code | 7 blank | 18 comment | 0 complexity | 32eb3be139be56e9ccc40641841dd566 MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2009 Google Inc.
 3
 4Licensed under the Apache License, Version 2.0 (the "License");
 5you may not use this file except in compliance with the License.
 6You may obtain a copy of the License at
 7
 8http://www.apache.org/licenses/LICENSE-2.0
 9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15**********************************************************************/
16package com.google.appengine.datanucleus.test;
17
18import javax.persistence.Entity;
19import javax.persistence.GeneratedValue;
20import javax.persistence.GenerationType;
21import javax.persistence.Id;
22
23/**
24 * @author Max Ross <maxr@google.com>
25 */
26@Entity
27public class HasDoubleJPA {
28  @Id
29  @GeneratedValue(strategy=GenerationType.IDENTITY)
30  private Long id;
31
32  private double aDouble;
33
34  public Long getId() {
35    return id;
36  }
37
38  public void setId(Long id) {
39    this.id = id;
40  }
41
42  public double getADouble() {
43    return aDouble;
44  }
45
46  public void setADouble(double aDouble) {
47    this.aDouble = aDouble;
48  }
49}