can't packin table also its data on same 2pack

Description

when packout a new table also some its data got exception. when fix this exception got other exception.

reason:somewhere assume table and data around it already on database so don't use transaction.
but on pack-in table create and data input is on same transaction, so some where will got exception

1. DefaultModelFactory
String etmodelpackage = et.getModelPackage();
in my case i also make new entity for this table, so NPE will raise here

2. GenericPO
tableID = MTable.getTable_ID(tableName);
tableID is 0 so next step raise NPE

3. MSequence
public static int getNextID (int AD_Client_ID, String TableName, String trxName)
stop at s_log.severe ("No record found - " + TableName);
Sequence for this table already create but have to get it on same transaction

.....

Environment

None

Activity

Show:

Hiep Lq October 8, 2017 at 6:02 PM

it's ok to keep separate 2pack for this case. ticket only for document

Won't Fix

Details

Assignee

Reporter

Components

Priority

Created September 18, 2017 at 3:58 PM
Updated October 8, 2017 at 6:02 PM
Resolved October 8, 2017 at 6:02 PM