Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error persisting CustomContentEntityObject Edited

I would like to create a custom content entity object, so that it may delivered as a notification to a watcher, who may then access it. However, when I try to create the notification, it throws a hibernate exception claiming my entity is not a sub class of ContentEntityObject.

So, what am I doing wrong? My instinct says I need to provide something in my class definition, but the documentation in this area is sorely lacking, to put it nicely.

org.springframework.orm.hibernate5.HibernateSystemException: Unable to resolve entity name from Class [com.*******] expected instance/subclass of [com.atlassian.confluence.core.ContentEntityObject]; nested exception is org.hibernate.HibernateException: Unable to resolve entity name from Class [com.*******] expected instance/subclass of [com.atlassian.confluence.core.ContentEntityObject]

The class definition. And yes, it is empty. I would put stuff in there, and I'm sure I need to put something in there, but quite frankly, I have no idea what kind of stuff is needed. As I said, the documentation is a bit sparse.

package com.*******;

import com.atlassian.confluence.content.CustomContentEntityObject;

public class DownloadableContent extends CustomContentEntityObject {


1 answer

1 accepted

0 votes
Answer accepted

Never mind. Just saw the following in the javadoc

Protected. If you want a new CustomContentEntityObject, get it from the CustomContentManager

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

109 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you