Hibtags

JSP 1.2 tag library for Hibernate 2.1

I was sitting around on Christmas Eve (had ankle surgery on the 23rd, so I'm stuck in bed) looking through the new criteria tag and query by example, and here's my first attempt to put this now rich API into our taglib. This would massively increase the number of tags, but they are reasonably grouped.

Serge Knystautas, Dec 24, 2003


Note This is just a draft... nothing yet has been implemented.


<hib:criteria var="" [scope=""] class="" [firstResult=""] [maxResults=""] [sessionFactory=""]>

  <hib:allEq items="${map}" />

  <hib:between property="" lo="" hi="" />

  <hib:eq property="" value="" />

  <hib:eqProperty property="" otherProperty="" />

  <hib:ge property="" value="" />

  <hib:gt property="" value="" />

  <hib:ilike property="" value="" [match="anywhere|end|exact|start"] />

  <hib:in property="" items="" />

  <hib:isNotNull property="" />

  <hib:isNull property="" />

  <hib:le property="" value="" />

  <hib:leProperty property="" value="" />

  <hib:like property="" value="" [match="anywhere|end|exact|start"] />

  <hib:lt property="" value="" />

  <hib:ltProperty property="" value="" />

  <hib:sql>

    <hib:param value="" />

  </hib:sql>

</hib:criteria>


<hib:and> 2 criteria </hib:and>

<hib:or> 2 criteria </hib:or>

<hib:conjunction> multiple criteria </hib:conjuction>

<hib:disjunction> multiple criteria </hib:disjunction>

<hib:not> one criteria </hib:not>


Extra stuff you can add...

<hib:order property="" [ascending="true/false"] />

<hib:alias association="" alias="" />

<hib:fetch association="" mode="default|eager|lazy" />


Idea for the Example API (cool stuff!)

<hib:example value="" [like="none|anywhere|end|exact|start"] [ignoreCase="true|false"] />

Home
Examples
Documentation
Mailing list
Download
About Us
License
CVS
SF page





SourceForge.net Is Down