You have only defined one key colunm in you ConsumerElectronics annotation, but the key has two columns. I presume you just need to add a new column:
Code:
/**
* Represents a ConsumerElectronics
* @hibernate.joined-subclass table="consumer_electronics"
* @hibernate.joined-subclass-key column="category_id"
* @hibernate.joined-subclass-key column="post_id"
*/
I don't use annotations, so I'm guessing the syntax, but it's something like that.
Remember, anything labelled "column" means the database column, not the pojo field. You haven't defined a column called "id" anywhere, so column="id" is patently wrong.