Override Sequence Name for Legacy Oracle DB?

Hi:

I am converting a legacy Oracle Forms 6i application to Cuba. A lot of my entities have Oracle sequences already created. Since both applications will co-exist for some time, I need to use the same sequence for Id generation in both applications.

However, when I try to tell Cuba the name of my sequence, it keeps changing it!

@IdSequence(name=“IDGEN”)

becomes

“SEQ_UN_IDGEN” in the actual SQL.

Is there ANY way to get Cuba to just use the sequence name I give it?

Well, silly me. Not sure why, but it is working now. @IdSequence() is the correct solution to the problem.

1 Like