User inherits name and description properties from BaseOpenmrsMetadata but they don’t exist in the users table since they are not used, because these field exist in BaseOpenmrsData and they are marked as persistent, hibernate generates a query containing these columns which of course fails to execute because of missing columns.
User might be metadata from a logic or system point of view but in terms of Java inheritance, it isn’t since it doesn’t have any of the properties from an immediate super class in it’s class hierarchy, so this is an incorrect hierarchy.
I created TRUNK-5665 to fix this