deniskuzZ commented on code in PR #5804:
URL: https://github.com/apache/hive/pull/5804#discussion_r2103145947


##########
standalone-metastore/metastore-server/src/main/resources/package.jdo:
##########
@@ -384,10 +384,13 @@
       <field name="id" primary-key="true" value-strategy="native">
         <column name="CD_ID" jdbc-type="BIGINT" />
       </field>
-      <field name="columns" mapped-by="cd">
+      <field name="fields" mapped-by="cd">
         <order column="INTEGER_IDX"/>
         <collection element-type="MColumn" dependent-element="true" />
       </field>
+      <field name="columns" persistence-modifier="none">

Review Comment:
   same thing
   https://www.datanucleus.org/products/accessplatform_6_0/jdo/mapping.html
   
   > Making a field/property non-persistent
   
   If you have a field/property that you don’t want to persist, just mark it’s 
persistence-modifier as none, like this
   
   ````
   <class name="mydomain.MyClass">
       <field name="unimportantField" persistence-modifier="none"/>
   </class>
   ````



##########
standalone-metastore/metastore-server/src/main/resources/package.jdo:
##########
@@ -384,10 +384,13 @@
       <field name="id" primary-key="true" value-strategy="native">
         <column name="CD_ID" jdbc-type="BIGINT" />
       </field>
-      <field name="columns" mapped-by="cd">
+      <field name="fields" mapped-by="cd">
         <order column="INTEGER_IDX"/>
         <collection element-type="MColumn" dependent-element="true" />
       </field>
+      <field name="columns" persistence-modifier="none">

Review Comment:
   same thing: 
https://www.datanucleus.org/products/accessplatform_6_0/jdo/mapping.html
   
   > Making a field/property non-persistent
   
   If you have a field/property that you don’t want to persist, just mark it’s 
persistence-modifier as none, like this
   
   ````
   <class name="mydomain.MyClass">
       <field name="unimportantField" persistence-modifier="none"/>
   </class>
   ````



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to