Skip to content

Commit

Permalink
JPA test fix
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Felcman <[email protected]>
  • Loading branch information
rfelcman committed Oct 13, 2023
1 parent 43f005e commit 405af70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3162,15 +3162,6 @@ public boolean isDead() {
return this.lifecycle == Death;
}

/**
* INTERNAL:
* Return if this session is a database session.
*/
@Override
public boolean isDatabaseSession() {
return true;
}

/**
* PUBLIC:
* Return whether the session currently has a database transaction in progress.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void setObjectClassName(String objectClassName) {
@Override
public Object convertObjectValueToDataValue(Object attributeValue, Session session) {
try {
if (session.isDatabaseSession()) {
if (session.isConnected()) {
//Should handle conversions where DB connection is needed like String -> java.sql.Clob
return session.getDatasourcePlatform().convertObject(attributeValue, getDataClass(), (AbstractSession)session);
} else {
Expand Down

0 comments on commit 405af70

Please sign in to comment.