I getting the sense that I need to modify the HibernateAssembler to get it to work with annotations. Does anyone have an example that they can share as to how best to go about this?

Thanks, Kevin


On May 10, 2007, at 9:46 PM, Kevin wrote:

Is there a specific way the cfg.xml mapping file needs to be set up? (or any other configuration settings). right now we are using:


<mapping class="com.onefoot.vo.users.UserVO" />

but it is throwing a rtmp connection error. Any idea why this would be the case?

- Kevin



On May 10, 2007, at 2:31 PM, Christian Gruber wrote:

We used the annotations approach. It worked fine, but we did find a problem with them. We have several diffferent projects that use a different subset of the model. If you use annotations to define relationships, then you cannot re-use the object model java code unless you configure hibernate to use all of it. If Object A relates to Object B, but you only import Object A's configuration because project 2 doesn't use Object B, Hibernate will complain.


The advantage of mapping (which we lost) is that you can have a truly neutral object model, and if you aren't using certain relationships, you don't have to include them - those methods will simply have empty sets. But if that is not an issue, go right ahead. FDS doesn't even know about the metadata - it maps objects to actionscript agnostically.

regards,
Christian.

On May 10, 2007, at 1:59 PM, Kevin wrote:

Does the built-in FDS / HibernateAssembler require the hbm.xml
mapping files in order to work properly OR can we use the annotations
approach? The only reason I ask is that I have not seen any examples
of people using Hibernate annotations.

According to Hibernate:
http://annotations.hibernate.org/

"As an option, you can now use JDK 5.0 annotations for object/
relational mapping with Hibernate 3.2. You can use annotations in
addition to or as a replacement of XML mapping metadata."

Is there a reason that this approach would not work with FDS? Does
FDS care where Hibernate gets it's metadata?

Thanks,

- Kevin


christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES







Reply via email to