package org.apache.cloudstack.api.view.vo;

import javax.persistence.Column;

/**
 * Base class for all VO objects for db views.
 * @author minc
 *
 */
public abstract class BaseViewVO {

    @Column(name="id", updatable=false, nullable = false)
    protected long id;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (id ^ (id >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        BaseViewVO other = (BaseViewVO) obj;
        if (id != other.id)
            return false;
        return true;
    }
}

@@ -1,8 +1,809 @@
+// Licensed to the Apache Software Foundation (ASF) under one%0A// or more contributor license agreements.  See the NOTICE file%0A// distributed with this work for additional information%0A// regarding copyright ownership.  The ASF licenses this file%0A// to you under the Apache License, Version 2.0 (the%0A// %22License%22); you may not use this file except in compliance%0A// with the License.  You may obtain a copy of the License at%0A//%0A//   http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing,%0A// software distributed under the License is distributed on an%0A// %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A// KIND, either express or implied.  See the License for the%0A// specific language governing permissions and limitations%0A// under the License.%0A
 package 
@@ -876,82 +876,8 @@
 n;%0A%0A
-/**%0A * Base class for all VO objects for db views.%0A * @author minc%0A *%0A */%0A
 publ

Add missing license header to BaseViewVO