db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManagerHighLowImpl.java
Date Wed, 25 Feb 2004 20:24:38 GMT
brj         2004/02/25 12:24:38

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        SequenceManagerHighLowImpl.java
  Log:
  use addEqual to lookup the sequence
  
  Revision  Changes    Path
  1.27      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java
  
  Index: SequenceManagerHighLowImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- SequenceManagerHighLowImpl.java	5 Feb 2004 09:34:10 -0000	1.26
  +++ SequenceManagerHighLowImpl.java	25 Feb 2004 20:24:38 -0000	1.27
  @@ -257,7 +257,7 @@
           boolean needsInsert = false;
   
           Criteria c = new Criteria();
  -        c.addLike(PK_FIELD, seqName);
  +        c.addEqualTo(PK_FIELD, seqName);
           Query q = new QueryByCriteria(HighLowSequence.class, c);
   
           // first we lookup sequence object in database
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message