Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generated Serial ID Vs. Default Serial ID in EJB  RSS feed

Matheus Mendes
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks !

I have a noob doubt, or not so noob at all. I was thinking about the serialization and on my actual job I found a lot of classes that have the serial IDs generateds and other classes that have It with its default value, 1L.

The project is a group of 8 modules where one is the generic and have almost all EJBs, so thinking that we are working with EJBs and this system will be used in a cluster environment, what is the real matter with the serial IDs, I mean we have to use the generated or we could use whatever ?

I always had concern about the importance of the serial IDs and always thought that we must use the generated IDs, not the default.

Anyone could give me a good explanation or point some links and material for read about it ?

Thanks all!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!