0 Replies Latest reply on Mar 22, 2009 10:41 PM by Anya Dalton

    Creating a Custom Sequence

    Anya Dalton Newbie

      I'm creating an application for project tracking.


      I'd like to have the project name dynamically generated using a custom sequence. (Cannot use strings in the database sequence generator) For example:


      Project1
      Project2
      Then subprojects would be


      Project1-1
      Project1-2
      Project2-1
      etc.


      I'm not sure how to link it to the Project Name field in the model class if I create a class to count the number of projects in the database and then generate the name.