About serializable

111-120 of 200Refresh
Forum
2

Need help to make this test work and define proper annotations for entities Lists

and no entity is static.    package testodb; import java.io.File; import java.io.Serializable ... ; public class TestODB implements Serializable {          public static void main(String[] args ... class OrderDat implements Serializable {             @Id @GeneratedValue private long id
Forum
2

openejb jpa jaas module

com.bayner.jpa; import javax.persistence.*; import java.io.Serializable; import java.security ... ) public class Principals implements Serializable,Principal { private String principalName ... .Serializable; import java.util.List; /** * Created with IntelliJ IDEA. * User: apple * Date: 27
Forum
2

Field not persisted in abstract class with two level of nesting

. Here is an example code MHD1 package BUG2; import java.io.Serializable; import javax.persistence ... public class MHD1 implements Serializable{     private TZ1 timezone;     public MHD1 ... () {         super();     } } ATT package BUG2; import java.io.Serializable; import javax
Forum
2

Error 363 - Failed to read value of inverse relationship

Player implements Serializable { private static final long serialVersionUID = 1L; @Id ... >(); protected Player() { } [...] } @Entity public class Message implements Serializable ... , but Message class will be usefull after Player class will work. import java.io.Serializable; import java
Issue
2

Error reading UTF string (Serialized Objects in Explorer)

, whose type is serializable (Money). Using serializable types is not recommended (embeddable classes ... have the serializable class, which is needed during read. Please check this query (and accessing ... with a classpath that contains all your classes. But if Money is serializable and changing
Forum
2

Is it ok to put list or map of embeddable objects in entity ?

?   And one more question - I have some entities that have my own, serializable classes inside as ... and instead to define each of these serializable classes also as embeddable. Ok, thanks for your answer ... implements Serializable { (...) List embeddableBList; } EmbeddableB class
Forum
2

Trouble bug on explorer

; import javax.persistence.*; import java.io.Serializable; import java.util.Date; import java ... ", initialValue=10000) @Entity public class User implements Serializable { @Id @GeneratedValue ... .Id; import java.io.Serializable; /** * Created with IntelliJ IDEA. * User: apple * Date: 17
Forum
2

Extending model by "common entity"

public class Entity1 implements Serializable {     private String val1;     private String val2 ...  implements Serializable {     private String val4;     // (getters and setters here) } Now I want ... Serializable {     private String createdBy;     private Date createdAt;     private String modifiedBy
Forum
2

Mysterious "Attempt to persist a reference to a non managed instance" error

. package failing; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Ostrich implements Serializable {     @Id long id;     public Ostrich() { } } package failing; import java.io.Serializable; import java.util.Map; import javax
Forum
2

Should derived fields of an EmbeddedId be manually maintained by app code?

.Serializable; import javax.persistence.Basic; import javax.persistence.Embeddable; import javax ... public static class ECompoundKeyMapItemId implements Serializable { private static final long ... (newObj); //em.flush(); return newObj; } } import java.io.Serializable; import