简体   繁体   中英

How to use ADF CreateInsert when having a sequence generated ID trigger in my database?

I'm having an exception all the time when trying to add a new entity :

All fields are filled in, only ID is missing.

I'm adding an image :

视觉问题

For solving this problem it is necessary to change the type of the entity . Open the Entity Object, go to attributes tab, select ID field and in property inspector tab change Type NUMBER to DBSequence.

视觉解决方案

In the case that you have an ID of type BigDecimal , it's necessary to double click the attribute to make appear "Edit Attribute" Popup, then in browse for the Type label, and search oracle.jpo.doman.DBSequence, then do OK.

单击浏览按钮后,编辑属性弹出窗口

褐变层次结构选项卡,直到找到DBSequence

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM