-->
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.  [ 5 posts ] 
Author Message
 Post subject: Question on generating files; damsel in distress!
PostPosted: Mon Nov 20, 2006 8:45 pm 
Newbie

Joined: Thu Nov 16, 2006 1:22 pm
Posts: 7
I'm doing a very fast research project and I'm trying to determine how painful the process would/will be to port from a Java project using Hibernate to the same project using .NET and nHibernate. I've succeeded in changing the mapping file from the Java source into an nHibernate-compatible file that I was able to use with hbm2net to spit out the C# file I needed (whew).

Now I'm working on finding a way to generate the query. I'm floundering... help?? Is there something in hbm2net that will do this?

Thanks!

Janene (coming fresh from the Java-only, no Hibernate world)


**Any opinions expressed here are solely mine and do not represent the opinions of NatureServe.**

_________________
Janene


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 9:03 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
hbm2net is pretty dormant now, I recommend using something a little more active such as template-based generators, Codesmith or MyGeneration.

I don't know what you mean by generate query. You mean generate the table creation scripts? The tools I mentioned start with a table schema and generate the C# and the .hbm.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 1:41 am 
Newbie

Joined: Thu Nov 16, 2006 1:22 pm
Posts: 7
Hi grennis,

I only have another 3-4 hours allocated to work on this project, and just understanding how to set up hbm2net was a major feat for me. I looked at/downloaded MyGeneration, but the learning curve is too steep right now.

The situation I have is that I already have the database schema, java files and the .hbm file and I need to generate/create the .NET files for a port to .NET. I have queries written for Java and need to port those as well. Is that something I'll just have to do by hand?

I'm tasked with figuring out A) if it can be done reasonably easily and B) trying it out. I'm fairly certain it can be done... whether I'll be able to do it in another 3-4 hours is another question altogether.

_________________
Janene


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 10:12 am 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
So you need a Java to C# porting tool. Not really much to do with NHibernate. I'm sure it will take more than a few hours :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 12:24 pm 
Newbie

Joined: Thu Nov 16, 2006 1:22 pm
Posts: 7
grennis wrote:
So you need a Java to C# porting tool. Not really much to do with NHibernate. I'm sure it will take more than a few hours :(


Ok, that's great info, thanks!!

Janene

**Any opinions expressed here are solely mine and do not represent the opinions of NatureServe.**

_________________
Janene


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

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.