cancel
Showing results for 
Search instead for 
Did you mean: 

why is there no serialVersionUID in de.hybris.platform.core.model.product.ProductModel?

Former Member
0 Kudos

why is there no serialVersionUID in de.hybris.platform.core.model.product.ProductModel?

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavirisetty
Active Participant
0 Kudos

Hi Rahul,

Please check the usage for serialVersionUID in java class from below link,

http://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it

I guess its not needed unless you are transmitting data over network or using serialization process.

Thanks

Former Member
0 Kudos

Hi Phani,

Thanks for reply. I am aware of the use of serialVersionUID in java.

I faced issue due to this.. We have extended product model and added custom attribute(object).. It got logged in SavedEntryValue table...we changed the custom object,,while retrieving it from deserializing.. In compatible class exception is thrown.. which wont be if we have provision to add serial version if hybris model.

bhavirisetty
Active Participant
0 Kudos

Hi,

I never heard about SavedEntryValue , And from where you are trying to retrieve? Could you elaborate your scenario more?

Thanks

Former Member
0 Kudos

my mistake in writing model,,, it is SavedValueEntryModel de.hybris.platform.hmc.model.SavedValueEntryModel