Hi there!
i have a client/server application. the whole persistence stuff is on the server side. objects are streamed to a client with object serialization over an ObjectOutputStream / ObjectInputStream.
the problem:
when i stream an object which i just fetched from the database over hibernate, the client doesn't receive the id of the object. i did some debug stuff, and i'm absolutely sure that on the server side, just before streaming the object, the id is there. but just after arriving at the client, the id is
null. does the @id annotation somehow make the id attribute transient?
i read most of the manuals, googled a lot. but i couldn't find an answer. i'd really appreciate your help.
thanks in advance
commy
Hibernate version:
Hibernate 3.2
Hibernate Annotations 3.3.0
Mapping documents:
only the id relevant parts and the entity annotations of the class without any comments:
Code:
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class Persistable implements IPersistable {
private String id;
public Persistable() {
}
@Id
public String getId() {
return this.id;
}
//[...]