Can i send an @entity through TCP java socket?
all my test fails ... so is possible send an @entity using a TCP开发者_如何转开发 socket?
UPDATE
Problem is related at this post https://stackoverflow.com/questions/3097269/hibernate-send-entity-through-tcp-lose-persistentbagor-not-update-it
Thanks.
I guess you should be able to send any object that is Serializable
through a socket. The @Entity
annotation has probably nothing to do with it.
Could you however refine your exact problem and what you are trying to do? As it is now, it doesn't make much sense.
You can send everything that fits into an array of bytes.
精彩评论