Inheriting properties from base entities

I have a base entity which defines a method: String: getReference() as part of an interface, and entities implement. I can expose the method data, however when Hilla generates the TypeScript entity definitions, they are missing this - does it need to somehow exist as a property on the entity? How do I go about exposing this information?

Does the entity have the @mappedsuperclass annotation?