Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

CRUD Methos problem #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi, I'm using codesmith and everything was generated perfectly. But I have
a problem, there is no code on the CRUD methods that uses HQL language. Is
this normal??, Do I need to write the CRUD implementations??

thank you very much in advance

Original issue reported on code.google.com by rogelio....@gmail.com on 22 Mar 2009 at 12:53

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 23 Mar 2009 at 9:58

GoogleCodeExporter commented 9 years ago
When the CodeSmith NHibernate templates generate, they create two Manager files 
for
each manager object, an editable file and a .generated file. The editable file 
starts
out blank for editing, but the generated file has basic get methods already 
generated
for you.
These managers actually use Criterion objects for their logic, but both 
Criterion and
Query methods (as well as all other NHibernate methods) are available to the 
user.

We have recently updated our NHibernate templates to version 1.0.14, and 
uploaded a
complete working sample project for the PetShop database into our repository.
This sample project contains examples of how to use the generated get methods, 
as
well as writing your own custom queries.
Please check out our sample project for more details: 
trunk/Templates/Examples/NHibernate

If you are still experiencing a problem where the templates are not generating 
the
appropriate content, please post again with more details on how to reproduce 
the issue.

Original comment by tdupont...@gmail.com on 24 Mar 2009 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 7 Oct 2009 at 4:06