[英]Can i send an @entity through TCP java socket?
all my test fails ... so is possible send an @entity using a TCP socket? 我所有的测试都失败了,所以可以使用TCP套接字发送@entity吗?
UPDATE 更新
Problem is related at this post https://stackoverflow.com/questions/3097269/hibernate-send-entity-through-tcp-lose-persistentbagor-not-update-it 问题与此帖子有关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. 我想您应该能够通过套接字发送可
Serializable
任何对象。 The @Entity
annotation has probably nothing to do with it. @Entity
批注可能与它无关。
Could you however refine your exact problem and what you are trying to do? 但是,您能否完善您的确切问题以及您要做什么? As it is now, it doesn't make much sense.
就目前而言,这没有多大意义。
您可以发送适合字节数组的所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.