[jboss-user] [EJB 3.0] - Re: Deployment error mapping a parent/child related entity

abl do-not-reply at jboss.com
Sun Jul 16 11:16:02 EDT 2006


I have a similar construct in another part of the system:

@Entity
  | public class BasketItem<T extends ComplexEntity>
  | {
  | 	private T object;
  | 	
  | 	@ManyToOne(fetch=FetchType.LAZY, optional=false)
  | 	public T getObject()
  | 	{
  | 		return object;
  | 	}
  | 	public void setObject(T object)
  | 	{
  | 		this.object = object;
  | 	}
  | ...
  | }
  | 
  | @Entity
  | public class AssetBasketItem extends BasketItem<Asset>
  | {
  | ...
  | }

this is getting deployed and works. what is the difference? 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958328#3958328

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958328



More information about the jboss-user mailing list