About NamedQueries

21-30 of 34Refresh
Forum
4

New to Product & Having An Issue

. package test.Domain; ...imports.... @Entity @Access(AccessType.PROPERTY) @NamedQueries({ @NamedQuery(name="Department.findAll", query="SELECT d FROM Department AS d"), @NamedQuery(name="Department.byName", query="SELECT d from Department AS d WHERE d.name = :name"), @NamedQuery
Forum
3

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Query; import javax.persistence.Version; import uk.co.his.experiment8.common.TestException; @Entity @NamedQueries({ @NamedQuery(name = "numberOfMapItems", query = "SELECT COUNT(x) FROM CompoundKeyMapItem x
Forum
3

ObectDb 2.3.6 in OSGi environment

); the corresponding POJO: @Entity @NamedQueries({   @NamedQuery(name = "RuleValueNode.findRoot", query = "SELECT rvn FROM RuleValueNode rvn where rvn.parent is null"),   @NamedQuery(name ... and rvn.parent = :parent"),   @NamedQuery(name = "RuleValueNode.findStandardNodes", query = "SELECT rvn
Forum
3

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

javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery ... .TestException; @Entity @NamedQueries({ @NamedQuery(name = "numberOfMapItems", query = "SELECT COUNT(x
Forum
3

Database Inconsistency or corruption

.persistence.NamedQueries({ /* queries */ }) public class ObjectValue implements metamodel.IObjectValue ... (name="Attributes", schema="dex_01") @javax.persistence.NamedQueries({  /*  queries */}) public ... .persistence.NamedQueries({  /* queries */ }) @DiscriminatorColumn(name = "type", discriminatorType
Forum
2

Cast exception?

).getSingleResult(); Where the query is a NamedQuery store in Player class file: @NamedQuery(name="Player
Forum
2

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

with field "type" GOOD found by the the NamedQuery does not correspond with the actual data present ... . That's it. Anyway...it's just a NamedQuery that is executed by an EntityManager. That's all. I would really appreciate a fix
Forum
2

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public class PhoneNumber implements Serializable {     int countryCode;     long number;   Which is a part of Customer object: @MappedSuperclass @NamedQueries({     @NamedQuery(         name
Forum
2

Trouble bug on explorer

* To change this template use File | Settings | File Templates. */ @NamedQueries({ @NamedQuery
Forum
2

Query can't see recently persisted object

within the same container transaction?  @NamedQueries( { @NamedQuery( name