Invariance relations in thermoelasticity with generalized variables