~ccheney/ubuntu/lucid/eucalyptus/lucid-sru

« back to all changes in this revision

Viewing changes to clc/modules/core/src/edu/ucsb/eucalyptus/cloud/entities/CertificateInfo.java

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-02-11 02:45:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090211024539-0jhzbpg3hk6nu1yg
Tags: upstream-1.5~bzr139
ImportĀ upstreamĀ versionĀ 1.5~bzr139

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Software License Agreement (BSD License)
 
3
 *
 
4
 * Copyright (c) 2008, Regents of the University of California
 
5
 * All rights reserved.
 
6
 *
 
7
 * Redistribution and use of this software in source and binary forms, with or
 
8
 * without modification, are permitted provided that the following conditions
 
9
 * are met:
 
10
 *
 
11
 * * Redistributions of source code must retain the above
 
12
 *   copyright notice, this list of conditions and the
 
13
 *   following disclaimer.
 
14
 *
 
15
 * * Redistributions in binary form must reproduce the above
 
16
 *   copyright notice, this list of conditions and the
 
17
 *   following disclaimer in the documentation and/or other
 
18
 *   materials provided with the distribution.
 
19
 *
 
20
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 
21
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
22
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
23
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 
24
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 
25
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 
26
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 
27
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 
28
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 
29
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 
30
 * POSSIBILITY OF SUCH DAMAGE.
 
31
 *
 
32
 * Author: Chris Grzegorczyk grze@cs.ucsb.edu
 
33
 */
 
34
 
 
35
package edu.ucsb.eucalyptus.cloud.entities;
 
36
 
 
37
import org.hibernate.annotations.Cache;
 
38
import org.hibernate.annotations.CacheConcurrencyStrategy;
 
39
 
 
40
import javax.persistence.*;
 
41
 
 
42
@Entity
 
43
@Table(name="cert_info")
 
44
@Cache( usage = CacheConcurrencyStrategy.READ_WRITE )
 
45
public class CertificateInfo
 
46
{
 
47
  @Id
 
48
  @GeneratedValue
 
49
  @Column( name = "cert_info_id" )
 
50
  private Long id = -1l;
 
51
  @Column( name = "cert_info_alias" )
 
52
  private String certAlias;
 
53
  @Lob
 
54
  @Column( name = "cert_info_value" )
 
55
  private String value;
 
56
 
 
57
 
 
58
  public CertificateInfo()
 
59
  {
 
60
  }
 
61
 
 
62
  public CertificateInfo( String certAlias )
 
63
  {
 
64
    this.certAlias = certAlias;
 
65
  }
 
66
 
 
67
  public String getCertAlias()
 
68
  {
 
69
    return certAlias;
 
70
  }
 
71
 
 
72
  public void setCertAlias( String certAlias )
 
73
  {
 
74
    this.certAlias = certAlias;
 
75
  }
 
76
 
 
77
  public Long getId()
 
78
  {
 
79
    return id;
 
80
  }
 
81
 
 
82
  public void setId( Long id )
 
83
  {
 
84
    this.id = id;
 
85
  }
 
86
 
 
87
  public String getValue() {
 
88
    return value;
 
89
  }
 
90
 
 
91
  public void setValue( final String value ) {
 
92
    this.value = value;
 
93
  }
 
94
}