adutra commented on code in PR #1401:
URL: https://github.com/apache/polaris/pull/1401#discussion_r2050882112


##########
extension/persistence/eclipselink/src/main/java/org/apache/polaris/extension/persistence/impl/eclipselink/PolarisEclipseLinkStore.java:
##########
@@ -84,7 +84,7 @@ void writeToEntities(EntityManager session, PolarisBaseEntity 
entity) {
     diagnosticServices.check(session != null, "session_is_null");
     checkInitialized();
 
-    ModelEntity model = lookupEntity(session, entity.getCatalogId(), 
entity.getId());
+    ModelEntity model = lookupEntity(session, entity.getCatalogId(), 
entity.getId(), -1);

Review Comment:
   Good question, my idea with -1 was precisely to indicate the absence of type 
code, since there is no such type code in `PolarisEntityType`.
   
   I would be OK with all your suggestions. Let's wait a bit for other people 
to weigh in.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to