Home » Search

About IDE

131-140 of 200Refresh
JPA Doc
4

javax.persistence.OneToMany

getOrders() { return orders; } In Order class: @ManyToOne @JoinColumn(name="CUST_ID ... orders; } // In Order class: @ManyToOne @JoinColumn(name="CUST_ID", nullable=false ... ) @JoinColumn(name="CUST_ID") // join column is in table for Order public Set getOrders
JDO Doc
4

newObjectIdInstance(pcClass, obj)

constructor of the object id class. It is intended for single field identity. The identity instance returned ... on which the method is called. If the key is the wrong class for the object id class, null is returned ... of the object id Returns: the new ObjectId instance, or null if the class is not registered. Since: JDO 2.0
Forum
4

Database Inconsistency or corruption

. ObjectValue ID:=100, TYPE:=Person, REVISION:=0, isPersisted:=true, LockMode:=PESSIMISTIC_WRITE]] ... Attribute  ID:=1400, Name:=profileName, Value:=ID:=1400, PrimitiveValue:=ProfileName 99, REVISION:=0, isPersisted:=true ... After the update Operation I also dump the properties of the object. ObjectValue ID
Forum
3

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

javax.persistence.Id; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... class OrderDat implements Serializable {             @Id @GeneratedValue private long id ... id;             }             public void setId(long id) {                 this.id = id
Forum
3

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

.id, r.fileName) FROM RecordingMetaData AS r WHERE ... A remote RMI client runs SELECT (but not SELECT ... to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, r.fileName)' (error 783 ... .arunta.base.db.FileNameDTO(r.id, r.fileName
Forum
3

Problem with distinct select, order by and equivalent alias/attribute path

implements Serializable {     @Id     private String id;         private String town;     public Location() {     }     public Location(String id, String town) {         this.id = id;         this.town = town;     }         public String getId() {         return id;     }     public
Forum
3

Join performance in Objectdb

SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.idImage=i.id AND e.idPage=p.id; So simple ... a wrong command?    According to your query you use IDs instead of references, which is not recommended when using JPA. It seems that a Meta instance holds the IDS of an Image and a Page instances
Forum
3

Strange behaviour with ORDER BY and IN

by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter on this member ... the Entity-ID) actually work well, this behaviour is only observable when filtering and ordering both are done on the ID member.   Assuming this simple Entity class: @Entity public class Location
Issue
3

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Account extends AbstractEntity implements IAbstractEntity { @Id @Column(name = "account_id") @GeneratedValue(strategy= GenerationType.TABLE) protected Long id; @Override public Long getId() { return id; } @Override public void setId
Issue
3

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

", joinColumns = @JoinColumn(name = "owner_ID", referencedColumnName = "ID"), inverseJoinColumns = @JoinColumn(name = "ownedElement_ID", referencedColumnName = "ID")) public Element ... =TestDeepValues][project=TEST: project 1][id=45][name=TEST: test deep values]) INFO: ConfigBean