
package com.exedio.cope.lib.hierarchy;

import com.exedio.cope.lib.IntegerAttribute;
import com.exedio.cope.lib.Item;

/**
 * @persistent
 */
public abstract class Super extends Item
{
	/**
	 * @persistent
	 * @not-null
	 */
	private static final IntegerAttribute superInt = new IntegerAttribute(); 
	
/**

	 **
	 * Constructs a new Super with all the attributes initially needed.
	 * @param initialSuperInt the initial value for attribute {@link #superInt}.
	 * @generated
	 *
 */private Super(
				final int initialSuperInt)
	{
		super(new com.exedio.cope.lib.AttributeValue[]{
			new com.exedio.cope.lib.AttributeValue(superInt,new Integer(initialSuperInt)),
		});
	}/**

	 **
	 * Creates an item and sets the given attributes initially.
	 * @generated
	 *
 */protected Super(final com.exedio.cope.lib.AttributeValue[] initialAttributes)
	{
		super(initialAttributes);
	}/**

	 **
	 * Reactivation constructor. Used for internal purposes only.
	 * @see Item#Item(com.exedio.cope.lib.util.ReactivationConstructorDummy,int)
	 * @generated
	 *
 */protected Super(com.exedio.cope.lib.util.ReactivationConstructorDummy d,final int pk)
	{
		super(d,pk);
	}/**

	 **
	 * Returns the value of the persistent attribute {@link #superInt}.
	 * @generated
	 *
 */private final int getSuperInt()
	{
		return ((Integer)getAttribute(this.superInt)).intValue();
	}/**

	 **
	 * Sets a new value for the persistent attribute {@link #superInt}.
	 * @generated
	 *
 */private final void setSuperInt(final int superInt)
	{
		try
		{
			setAttribute(this.superInt,new Integer(superInt));
		}
		catch(com.exedio.cope.lib.NotNullViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
		catch(com.exedio.cope.lib.ReadOnlyViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
		catch(com.exedio.cope.lib.UniqueViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
	}/**

	 **
	 * The persistent type information for super.
	 * @generated
	 *
 */public static final com.exedio.cope.lib.Type TYPE = 
		new com.exedio.cope.lib.Type(
			Super.class,
			new com.exedio.cope.lib.Attribute[]{
				superInt.initialize("superInt",false,true),
			},
			null
		)
;}


package com.exedio.cope.lib.hierarchy;

import com.exedio.cope.lib.IntegerAttribute;
import com.exedio.cope.lib.Item;

/**
 * @persistent
 */
public abstract class Super extends Item
{
	/**
	 * @persistent
	 * @not-null
	 */
	public static final IntegerAttribute superInt = new IntegerAttribute(); 
	
/**

	 **
	 * Constructs a new Super with all the attributes initially needed.
	 * @param initialSuperInt the initial value for attribute {@link #superInt}.
	 * @generated
	 *
 */public Super(
				final int initialSuperInt)
	{
		super(new com.exedio.cope.lib.AttributeValue[]{
			new com.exedio.cope.lib.AttributeValue(superInt,new Integer(initialSuperInt)),
		});
	}/**

	 **
	 * Creates an item and sets the given attributes initially.
	 * @generated
	 *
 */protected Super(final com.exedio.cope.lib.AttributeValue[] initialAttributes)
	{
		super(initialAttributes);
	}/**

	 **
	 * Reactivation constructor. Used for internal purposes only.
	 * @see Item#Item(com.exedio.cope.lib.util.ReactivationConstructorDummy,int)
	 * @generated
	 *
 */protected Super(com.exedio.cope.lib.util.ReactivationConstructorDummy d,final int pk)
	{
		super(d,pk);
	}/**

	 **
	 * Returns the value of the persistent attribute {@link #superInt}.
	 * @generated
	 *
 */public final int getSuperInt()
	{
		return ((Integer)getAttribute(this.superInt)).intValue();
	}/**

	 **
	 * Sets a new value for the persistent attribute {@link #superInt}.
	 * @generated
	 *
 */public final void setSuperInt(final int superInt)
	{
		try
		{
			setAttribute(this.superInt,new Integer(superInt));
		}
		catch(com.exedio.cope.lib.NotNullViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
		catch(com.exedio.cope.lib.ReadOnlyViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
		catch(com.exedio.cope.lib.UniqueViolationException e)
		{
			throw new com.exedio.cope.lib.SystemException(e);
		}
	}/**

	 **
	 * The persistent type information for super.
	 * @generated
	 *
 */public static final com.exedio.cope.lib.Type TYPE = 
		new com.exedio.cope.lib.Type(
			Super.class,
			new com.exedio.cope.lib.Attribute[]{
				superInt.initialize("superInt",false,true),
			},
			null
		)
;}

make superInt public