Menu

LoadBy Unique field

Hamvil
2005-09-07
2013-04-25
  • Hamvil

    Hamvil - 2005-09-07

    I found very usefull to add a method that implements a load by unique field.

    So if for example there is an email field defined in the db i have the correspondent method

    MyBean loadByEmail(String email)

    How do you see this feature included by defualt in sql2java???

     
    • nr

      nr - 2005-09-10

      Thanks for the suggestion.
      Do you mean that sql2java should detect fields marked as unique and provide a loadbyX for them or should we add a loadbyX for each field even if the are not really unique ?

       
    • Hamvil

      Hamvil - 2005-09-11

      The first one. sql2java should detect the unique fields and provide a loadByX method

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.