Cache not working for joined subclass

I am using the Joined Subclass inheritance structure ( I am trying to use a read-write cache strategy. The 2nd level caching does not seem to work for this joined subclass inheritance structure. I am using hibernate xml mapping. is abstract class.

<class name=“” table=“PERSON”>
<cache usage=“read-write”/>

<id name=“OID” column=“PERSON_ID” type=“long” unsaved-value=“null”>
<generator class=“sequence”>
<param name=“sequence_name”>HAWKIRB_SEQ</param>

<property name=“email” column=“EMAIL” type=“string”/>

<joined-subclass name=“” table=“UI_PERSON”>
<key column=“PERSON_ID”/>
<property name=“universityId” column=“UNIVID” type=“string”/>

<joined-subclass name=“” table=“NON_UI_PERSON”>
<key column=“PERSON_ID”/>
<property name=“institutionName” column=“INST_NAME” type=“string”/>


It looks like it’s creating the caching region named after the super class (“”) but it doesn’t want to do puts into the cache because it’s using the subclass name (“”) and determining that there is no cache for this item


First, you need to replicate the issue with this test case template.

After you have the test case, you can open a new Jira issue.

1 Like

first time doing this, let me know if needs any changes.

@mekane You can create a zip file with the project and open a Jira issue with it.

1 Like

If anyone else has similar problems, I created a JIRA issue here:

I have the same issue as

Does anyone know when we can get this issue fixed? And is there any workaround? Thanks

Hi Everyone,

what is the workaround for this issue. please reply its urgent.
@vlad please give me some solution. i got stuck into this issue for long.
don’t want to upgrade nd degrade hibernate version.