-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dependency Inversion Principle without using Any
PostPosted: Mon Apr 11, 2005 3:34 pm 
Newbie

Joined: Mon Apr 11, 2005 3:24 pm
Posts: 3
We have a project based on hibernate/spring/xdoclet. We are trying to upgrade to hibernate 3.0/spring 1.2/xdoclet 1.3. However, the new version of Xdoclet does not seem to support Any types as I
Schema text failed: Could not determine type for column CONTAINER_TYPE of type org.hibernate.type.AnyType: java.lang.NullPointerException

We are using any types to implement Dependency Inversion Principle where the association class could be anything. For example, we have Role class that can be either associated with User or Group. Ideally, we would like to implement this as an interface. Let's call this MyPrincipal interface. However, if I use the interface in the association, I get:

Schema text failed: Association references unmapped class:

error. Is there any way to implement association to interfaces rather than concrete classes. I think this works for abstract class, but I haven't able to work with interfaces.


Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.