-->
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.  [ 6 posts ] 
Author Message
 Post subject: Using NHibernate with LLBLGen Pro Generated Code
PostPosted: Tue Feb 28, 2006 10:19 pm 
Newbie

Joined: Tue Feb 28, 2006 10:12 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]

Can anyone show me the ways in using NHibernate actions eg. retireve, update, add and delete data from the system/database .
I am using vb.net express edition.

The classes are generated using LLBLGen Pro.....but it did not generate the mapping file ......

so i hope that there is someone who can help me in this problem.....thanks[/quote]


Top
 Profile  
 
 Post subject: CodeSmith Templates
PostPosted: Wed Mar 01, 2006 7:21 am 
Newbie

Joined: Tue Jan 31, 2006 2:29 pm
Posts: 12
I use CodeSmith (the version 2.6 is free) with this templates:
www.intesoft.net/nhibernate/

This will generate the classes and the mapping files from database and it's working fine !!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 01, 2006 10:08 pm 
Newbie

Joined: Tue Feb 28, 2006 10:12 pm
Posts: 2
thanks RWagnerVM

but what i wanna do is use LLBLGen Pro to generate NHibernate classes and mapping files.....

pls help me if anyone knows how to solve this problem......

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 4:10 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
goh6613 wrote:
thanks RWagnerVM

but what i wanna do is use LLBLGen Pro to generate NHibernate classes and mapping files.....

pls help me if anyone knows how to solve this problem......

thanks


dude, you are trying to use one or-mapper to generate maps for another. Are you serious about that? You should understand that they have totally different approaches and are in no way even slightly compatible (nor are they trying to be).

In short, the answer is: do not waste your time on it. ;-)


Top
 Profile  
 
 Post subject: LLBLGen
PostPosted: Thu Mar 02, 2006 4:28 am 
Regular
Regular

Joined: Tue Jan 03, 2006 7:21 am
Posts: 85
Very true, I have been scratching my head for 2 days now as to how are you planning to have LLBLGen to generate NHibernate mapping for you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 10:28 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
It sounds like what you really want is to have some code generator generate your classes and mappings - I think you've got LLBLGen stuck in your head when it is not needed. Both MyGeneration and CodeSmith have templates for NHibernate. Drop the LLBLGen + NHibernate combo and find yourself a templated engine that gives you what you're really after.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.