/*
 * Copyright 2009 Udai Gupta, Ralf Joachim
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with 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 org.castor.cpa.test.test97;

import java.util.Collection;
import org.exolab.castor.jdo.TimeStampable;
import org.junit.Ignore;

@Ignore
public class Product implements TimeStampable {
    
    private int _id;
    private String _name;
    private ProductDetail _detail;
    private Collection<Order> _orders;
    private Owner _owner;
    private long _timeStamp;

    public final int getId() { return _id; }
    public final void setId(final int id) { _id = id; }

    public final String getName() { return _name; }
    public final void setName(final String name) { _name = name; }

    public final ProductDetail getDetail() { return _detail; }
    public final void setDetail(final ProductDetail detail) { _detail = detail; }

    public final Collection<Order> getOrders() { return _orders; }
    public final void setOrders(final Collection<Order> orders) { _orders = orders; }

    public final Owner getOwner() { return _owner; }
    public final void setOwner(final Owner owner) { _owner = owner; }

    /**
     * @see org.exolab.castor.jdo.TimeStampable#jdoSetTimeStamp(long)
     */
    public final void jdoSetTimeStamp(final long timestamp) {
        _timeStamp = timestamp;
    }

    /**
     * @see org.exolab.castor.jdo.TimeStampable#jdoGetTimeStamp()
     */
    public final long jdoGetTimeStamp() {
        return _timeStamp;
    }
    
    public String toString () {
        return this.getClass().getName() + "/" + getId();
    }

}
