Updated Branches: refs/heads/master da2630204 -> f04c006f9
Added javax.persistence and javax.ejb jar packages to replace the files removed. Added a new annotation to replace the encrypt attributed added to the Column annotation. Removed join attribute added to SecondaryTable in previous commit Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f04c006f Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f04c006f Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f04c006f Branch: refs/heads/master Commit: f04c006f9a0ceedc2466eed573877cf3cf3cf164 Parents: 457f3b3 Author: Alex Huang <[email protected]> Authored: Wed Aug 8 12:58:01 2012 -0700 Committer: Alex Huang <[email protected]> Committed: Wed Aug 8 12:58:24 2012 -0700 ---------------------------------------------------------------------- deps/cloud-ejb-api-3.0.jar | Bin 0 -> 32941 bytes deps/cloud-javax.persistence-2.0.0.jar | Bin 0 -> 134684 bytes utils/src/com/cloud/utils/db/Encrypt.java | 32 ++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f04c006f/deps/cloud-ejb-api-3.0.jar ---------------------------------------------------------------------- diff --git a/deps/cloud-ejb-api-3.0.jar b/deps/cloud-ejb-api-3.0.jar new file mode 100644 index 0000000..e9a86d1 Binary files /dev/null and b/deps/cloud-ejb-api-3.0.jar differ http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f04c006f/deps/cloud-javax.persistence-2.0.0.jar ---------------------------------------------------------------------- diff --git a/deps/cloud-javax.persistence-2.0.0.jar b/deps/cloud-javax.persistence-2.0.0.jar new file mode 100644 index 0000000..62ee5c3 Binary files /dev/null and b/deps/cloud-javax.persistence-2.0.0.jar differ http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f04c006f/utils/src/com/cloud/utils/db/Encrypt.java ---------------------------------------------------------------------- diff --git a/utils/src/com/cloud/utils/db/Encrypt.java b/utils/src/com/cloud/utils/db/Encrypt.java new file mode 100755 index 0000000..4973458 --- /dev/null +++ b/utils/src/com/cloud/utils/db/Encrypt.java @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +package com.cloud.utils.db; + +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * Encrypt is a replacement for the column modification. + */ +@Target(FIELD) +@Retention(RUNTIME) +public @interface Encrypt { + boolean encrypt() default true; +}
