-
1. Re: Length of value in MeasurementDataTrait
mazz Feb 20, 2014 1:59 PM (in response to lzmuda1)1 of 1 people found this helpfulprobaby just a mismatch in the code. I would think that annotation can be increased to match the actual DB constraint.
-
2. Re: Length of value in MeasurementDataTrait
lzmuda1 Feb 20, 2014 5:25 PM (in response to mazz)Thanks for the quick reply. I don't want compile full RHQ project. Can I expect, in the close future, changes in MeasurementDataTrait class?
-
3. Re: Length of value in MeasurementDataTrait
tsegismont Feb 21, 2014 5:54 AM (in response to lzmuda1)1 of 1 people found this helpfulYes the annotation attribute will be updated to match the value of the database initialization scripts. Still, IIRC the @Column length attribute is only used by Hibernate DDL generator, and will not prevent you from storing something larger (provided the database column can accept it)
-
4. Re: Length of value in MeasurementDataTrait
lzmuda1 Feb 21, 2014 9:02 AM (in response to tsegismont)I wrote plugin, and I use MeasurementDataTrait to pass some String, and in RHQ Desktop in traits I see full String, but in alerts sended to me, I see only 255 first characters, so I think when size of value will be lengthened my problem will dissapear. Thanks for your help.
-
5. Re: Length of value in MeasurementDataTrait
mazz Feb 21, 2014 8:02 AM (in response to tsegismont)Yeah, Thomas, I belive you are right. IIRC, that attribute is only used when you ask hibernate to initially create your schema. It isn't a validator on update or insert.