Generate NHibernate classes and mappings?

Posts   
 
    
Mountain
User
Posts: 21
Joined: 01-Apr-2005
# Posted on: 22-Nov-2005 19:18:30   

Are there any LLBL templates to generate NHibernate classes and mappings? If not, is it possible to easily translate the MyGeneration templates to LLBL templates?

Frans, do you see the value in providing a template conversion tool? There seem to be a lot of useful templates in MyGeneration (http://www.mygenerationsoftware.com/templatelibrary/default.aspx) and/or CodeSmith format and it would be great to be able to use these in LLBL Gen Pro!

Hint wink CodeSmith-2-MyGeneration Converter: http://www.mygenerationsoftware.com/portal/CodeSmithConverter/tabid/90/Default.aspx

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 22-Nov-2005 20:24:27   

Mountain wrote:

Are there any LLBL templates to generate NHibernate classes and mappings? If not, is it possible to easily translate the MyGeneration templates to LLBL templates?

Yes, please check the .ltp template syntaxis in the SDK documentation. (extra's section in the customer area). Also, if you want to utilize meta-data (of course) like db schema info, you've to convert that to the llblgen pro project model, but that's fairly straight forward.

Frans, do you see the value in providing a template conversion tool? There seem to be a lot of useful templates in MyGeneration (http://www.mygenerationsoftware.com/templatelibrary/default.aspx) and/or CodeSmith format and it would be great to be able to use these in LLBL Gen Pro!

Code conversion requires parsing of the actual code and re-writing that, which is a bit of a pain to create in general form.

I'll not provide templates for competing O/R mapper frameworks btw.

Frans Bouma | Lead developer LLBLGen Pro
bonder
User
Posts: 36
Joined: 23-Sep-2003
# Posted on: 30-Dec-2005 05:26:18   

Otis wrote:

I'll not provide templates for competing O/R mapper frameworks btw.

Does the childhood taunt "chicken!" mean the same thing in the Netherlands as it does here? wink

--Bruce

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 30-Dec-2005 09:16:37   

bonder wrote:

Otis wrote:

I'll not provide templates for competing O/R mapper frameworks btw.

Does the childhood taunt "chicken!" mean the same thing in the Netherlands as it does here? wink --Bruce

No, but I do know what you mean simple_smile . It's not that, I just don't help competition getting part of our marketshare, they should do that by themselves. Reading the hibernate blog yesterday, I have a bit doubts about the future of nhibernate, as they're looking into automatic porting hibernate 3.x to .net, which is IMHO the same as starting from scratch with 3.0, not a wise move.

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 03-Jan-2006 19:58:17   

Otis wrote:

It's not that, I just don't help competition getting part of our marketshare, they should do that by themselves.

Actually, I was thinking that if there were NHibernate templates available for your product it would only help you sell more LLBLGen.

We have looked at using MyGen and Codesmith to do NHibernate templates and they just don't contain the UI to specify fields/names etc that your UI has. (Well you could build it all.) But, LLBLGen seems to have all the UI stuff and metadata that would enable us to do a nice job.

Also, some one that might buy your product to run the NHibernate templates may also want to check out the LLBLGen code templates.

Can you tell we have been considering writting NHibernate templates for LLBLGen?

BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 10-Jan-2006 11:23:47   

pilotboba wrote:

Otis wrote:

It's not that, I just don't help competition getting part of our marketshare, they should do that by themselves.

Actually, I was thinking that if there were NHibernate templates available for your product it would only help you sell more LLBLGen.

We have looked at using MyGen and Codesmith to do NHibernate templates and they just don't contain the UI to specify fields/names etc that your UI has. (Well you could build it all.) But, LLBLGen seems to have all the UI stuff and metadata that would enable us to do a nice job.

Also, some one that might buy your product to run the NHibernate templates may also want to check out the LLBLGen code templates.

Can you tell we have been considering writting NHibernate templates for LLBLGen?

Recently (last week) I saw (NDA) documents of what DLinq will get. It's going into the wrong direction for all O/R mapper vendors out there. Still, we have the code generator core which is a big asset and we're considering making it more important in future versions, so open up the code generator for other data-access solutions which requires changes in the GUI but at the same time makes us more robust for future stuff released by MS.

So, long-term plans indeed might include support for other data-access solutions, however we'll always keep our own core as the only first class citizen.

Frans Bouma | Lead developer LLBLGen Pro