1 Reply Latest reply on Sep 18, 2006 8:57 AM by F B

    sequences and Long / long vs int / Integer

    F B Newbie

      A DBA has created a sequence (Long type) and set a cap on its max value so it falls within the range of Integer. The PK column types are int; so, this all works fine for values; however....

      EJB3 CMP tries to stuff the Long sequence into the setId(Integer id) and; of course, fails. Is there any way to get EJBs to work with this schema?

      Please don't suggest getting the dba's to change things. There is a business need to work with what they have.