NativeQuery Result Entity

To make a join query of two or more tables from database I wrote a native query and execute that query.
Th entity manager is obtained from a container managed session facade.
The tables at database are like
table A(column1, column2, column3)
table B(column4, column5, column6)
the native query is like this
select a.column1 as c1,
a.column2 as c2,
a.column3 as c3,
b.column4 as c4,
b.column5 as c5,
b.column6 as c6
from A a, B b where a. column1 = b.column4
and the result entity class like this
public class JoinQueryResult{
private String c1;
private String c2;
private String c3;
private String c4;
private String c5;
private String c6;
// getters and setters here
and executing the query like
Query q = entityManager.createNativeQuery(sql,JoinQueryResult.class);
List<JoinQueryResult> = q.getResultList();
when I want to set c6 attribute of one instance of JoinQueryResult the entity manager automatically want to update the entity of JoinQueryResult and gets an error saying there is no table JoinQueryResult .
This is not the real table. I want just get the result of this join query to java beans.
What is the solution or best way to this method.
There must be way for example saying entity mnager do not persist this entity because it is just the result of native query.
Or could you plese say a solution method for this situation
best regards

Hello,
I can't say which is best, but there are a number of options.
You can either throw away the EntityManager or clear it once you've read your data (to make all the entities detached), or make all the fields in the Entity insertable=false, updatable=false ie:
@Entity
public class JoinQueryResult{
  @Column(insertable=false, updatable=false )
  private String c1;
}If you already have tables A and B mapped to Entities (say EntityA and EntityB) you can do the same thing in JPA but it won't require JoinQueryResult to be an entity - you can use a constructor in a jpa query. For instance:
createQuery("Select new package.JoinQueryResult( a.c1, a.c2, a.c3, b.c4, b.c5, c.c6) from EntityA a, EntityB b, where a.c1=b.c4");
The returned joinQueryResult objects would then not be managed, but it assumes you have Entities for the A and B tables, and that the JoinQueryResult has a constructor to take in all values.
Not related to getting readonly data, but you can also map the Entity in such a way to not require native queries, but having your JoinQueryResult map to tables A and B
@Table(name="A")
@SecondaryTable(name="B",
pkJoinColumns=@PrimaryKeyJoinColumn(name="column4"))
public class JoinQueryResult{
@Column(name="column1")
private String c1;

Similar Messages

  • No Toolbar buttons on OV page of serch result entity in Value Help PopUp

    Hello Friends,
    In Service Request, I  am calling a value help search of CRM_KNOWART_S/KA SearchView for the field of assignment block "Related Knowledge Articles" (component GSDOCFLOW/HdrDocFlowEF ) . I am getting value help AND RESULTS ARE COMING.
    Also, I am trying to call the overview page(CRM_KNOWART_H/KAGenDataFV) of results came to result list through a hyper link. I am able to navigate to Overview page of selected Knowledge Article. But I am NOT getting the TOOLBAR buttons which are already available in the Overviepage. Also, I can not see the Multi-select option in search result list of initial search result screen.
    Note: Since the Overview page is handled by Standard component, All toolbar buttons are already made available which we can see in our display. In Debugging,We can see all required parameters of buttons are getting passed while doing our navigation to the Overview page.
    I really appreciate any help from your end!!
    Many Thanks,
    Laxmi

    When implementing the code below, it only reads the first form, and then stops there. It doesn't execute the 2nd form.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </form>
    </form>
    If I put each form separtely like below, then it returns nothing.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    </FORM>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </FORM>
    What's my other alternative? I would appreciate any help.

  • Is there some caching of entity classes?

    We are analyzing a bug in our application which seems to be caused by some kind of jpa entity class cache in weblogic (or some other feature causing indirectly the same thing).
    The bug can't be reproduced every time, but it is happening very often after following steps:
    - Deploy application from Eclipse with OEPE in mode "Virtual application"
    - Use Redeploy or Clean feature of OEPE several times
    We are doing some jpa queries during initialization of our application and after several redeploys assigning of resulting entities of those queries triggers class cast exception. I have captured some diagnostics that confirmed that class of jpa query result entity has different classloader than current web app classloader. How is it possible and how can we clear that kind of cache that's causing this during redeploy? I'm not writing to OEPE forum because I think it uses standard facilities of Weblogic where this should never ever be possible regardles of what tool is using it. My diagnostic logs are:
    Expected class classloader: weblogic.utils.classloaders.ChangeAwareClassLoader@6ef4e946 finder: weblogic.utils.classloaders.CodeGenClassFinder@2e1a3d11 annotation: xxx
    Expected class source location (notice that this path is same in both cases): file:/C:/Users/.../FeblApplicationSettingsTuple.class
    Expected class protection domain: ProtectionDomain (file:/C:/Users/.../FeblApplicationSettingsTuple.class <no signer certificates>)
    weblogic.utils.classloaders.ChangeAwareClassLoader@6ef4e946 finder: weblogic.utils.classloaders.CodeGenClassFinder@2e1a3d11 annotation: xxx
    <no principals>
    java.security.Permissions@4ce3316a (
    ("java.net.SocketPermission" "localhost:1024-" "listen,resolve")
    ("java.lang.RuntimePermission" "stopThread")
    ("java.util.PropertyPermission" "line.separator" "read")
    ("java.util.PropertyPermission" "java.vm.version" "read")
    ("java.util.PropertyPermission" "java.vm.specification.version" "read")
    ("java.util.PropertyPermission" "java.vm.specification.vendor" "read")
    ("java.util.PropertyPermission" "java.vendor.url" "read")
    ("java.util.PropertyPermission" "java.vm.name" "read")
    ("java.util.PropertyPermission" "os.name" "read")
    ("java.util.PropertyPermission" "java.vm.vendor" "read")
    ("java.util.PropertyPermission" "path.separator" "read")
    ("java.util.PropertyPermission" "java.specification.name" "read")
    ("java.util.PropertyPermission" "os.version" "read")
    ("java.util.PropertyPermission" "os.arch" "read")
    ("java.util.PropertyPermission" "java.class.version" "read")
    ("java.util.PropertyPermission" "java.version" "read")
    ("java.util.PropertyPermission" "file.separator" "read")
    ("java.util.PropertyPermission" "java.vendor" "read")
    ("java.util.PropertyPermission" "java.vm.specification.name" "read")
    ("java.util.PropertyPermission" "java.specification.version" "read")
    ("java.util.PropertyPermission" "java.specification.vendor" "read")
    Actual class classloader: weblogic.utils.classloaders.ChangeAwareClassLoader@1b5f0c6 finder: weblogic.utils.classloaders.CodeGenClassFinder@20094d55 annotation: xxx
    Actual class source location: file:/C:/Users/.../FeblApplicationSettingsTuple.class
    Actual class protection domain: ProtectionDomain (file:/C:/Users/...n/FeblApplicationSettingsTuple.class <no signer certificates>)
    weblogic.utils.classloaders.ChangeAwareClassLoader@1b5f0c6 finder: weblogic.utils.classloaders.CodeGenClassFinder@20094d55 annotation: xxx
    <no principals>
    java.security.Permissions@57c14d95 (
    ("java.net.SocketPermission" "localhost:1024-" "listen,resolve")
    ("java.lang.RuntimePermission" "stopThread")
    ("java.util.PropertyPermission" "line.separator" "read")
    ("java.util.PropertyPermission" "java.vm.version" "read")
    ("java.util.PropertyPermission" "java.vm.specification.version" "read")
    ("java.util.PropertyPermission" "java.vm.specification.vendor" "read")
    ("java.util.PropertyPermission" "java.vendor.url" "read")
    ("java.util.PropertyPermission" "java.vm.name" "read")
    ("java.util.PropertyPermission" "os.name" "read")
    ("java.util.PropertyPermission" "java.vm.vendor" "read")
    ("java.util.PropertyPermission" "path.separator" "read")
    ("java.util.PropertyPermission" "java.specification.name" "read")
    ("java.util.PropertyPermission" "os.version" "read")
    ("java.util.PropertyPermission" "os.arch" "read")
    ("java.util.PropertyPermission" "java.class.version" "read")
    ("java.util.PropertyPermission" "java.version" "read")
    ("java.util.PropertyPermission" "file.separator" "read")
    ("java.util.PropertyPermission" "java.vendor" "read")
    ("java.util.PropertyPermission" "java.vm.specification.name" "read")
    ("java.util.PropertyPermission" "java.specification.version" "read")
    ("java.util.PropertyPermission" "java.specification.vendor" "read")
    )

    Hello,
    Can you post the code that runs into the exception, the exception itself, as well as how you are obtaining your EntityManager and EntityManagerFactory (if applicable)? If you are managing EntityManagerFactories in the application instead of allowing the container to manage them for you via injection, then you must also ensure that the application will close them when undeployed or some point before redeployment occurs. Otherwise, a similar error might occur dependent if garbage collection does not complete before the application next attempts to retrieve a factory.
    Best Regards,
    Chris

  • Query to count differents values of a field

    I have to do counts to the quantity of entitys in the database i have to obtain the quantity of registries for entities that appear
    Buenas, les comento estoy trabajando con plsql y se me presenta un problema, necesito contar la cantidad de registros que devuelve la query por entidad, estoy trabajando con un procedure y evaluando con un cursor, pero no se como hacer trabajar la query para devolver ese valor
    ENTITY OVERALL DATE          HOUR     
    ======     =====     ====          ====
    ENT1          5          20100318          12:00
    ENT2          20          20100318          12:00
    ENT3          12          20100318          12:00
    CURSOR1
    SELECT distinct(rp.cod_entidad),
    YYYYYYYYY,
    to_date(to_char(SYSDATE,'YYYYMMDD'),'YYYY-MM-DD') as fecha_pago,
    to_char(sysdate,'hh-mi-ss') as hora_pago
    FROM registry rp, product pc
    where pc.nro_solicitud = rp.nro_solicitud
    and pc.resp_2= 'OK'
    and pc.resp_1= 'OK'
    Edited by: 862673 on 31/05/2011 10:01

    I must build a query to tell me how many records per entity is, YYYYYYY is not a field, i dont know that I write
    TABLE
    ====
    ENTITY      Cliente          telefono
    ======      =======          ========
    ENT1      indiana          234 54231
    ENT1      jose           566 78954
    ENT1      esteban      234 1234
    ENT3      juan           23434567
    ENT3      jacinto      56745
    ENT3      Perez           23467677
    ENT2      indiana          678967
    ENT1      jaime           234
    RESULT
    =====
    ENTITY OVERALL
    ====== =======
    ENT1     4
    ENT2     1
    ENT3     3
    SELECT cod_entidad
    ,     COUNT (DISTINCT yyyyyyyyy)     AS overall
    FROM      registry rp,
         product pc
    where      pc.nro_solicitud     = rp.nro_solicitud
    and     pc.resp_2          = 'OK'
    and      pc.resp_1          = 'OK'
    GROUP BY cod_entidad
    Edited by: 862673 on 31/05/2011 13:41

  • Help with a tricky sql

    ** Consider the following table; we'll name this 'entities' for
    the following discussion.
    ENTITY FORM DEPTH EQUIV SOURCE
    100012802307W502 DVNU 1458 14399 GOVT
    100012802307W502 DVNU 1458 14399 IPL
    100012802307W502 PLSR 1455 14399 GOVT
    100012802307W502 PLSR 4238 14399 wayrig
    100012802307W502 PLSR 4450.4 14399 GOVT
    100012802307W502 PLSR 4788.3 14399 GOVT
    101070403227W300 BGVL 800 14399 GOVT
    101070403227W300 DVNU 855.3 14390 IPL
    101070403227W300 DVNU 855.6 14399 GOVT
    ** The goal
    For each unique ID (only 2 in the above example table: 100012802307W502
    and 101070403227W300)
    We need to get a single 'formation pick'.
    Without going into details, 'formation pick' is an industry term and
    in our example, a formation pick is identified by the FORM attribute.
    ** The Problem
    Given the above, the question which I need to answer is
    for each unique ENTITY, I want to get the PLSR formation pick.
    If for any ENTITY, there is not a PLSR pick, but there is
    an EQUIVALENT pick then for that ENTITY, we want that equivalent pick
    (in our example above, all FORM which have the same EQUIV value are
    considered equivalent; thus for 100012802307W502, there are PLSR picks
    while for 101070403227W300, there are not but there are equivalent
    picks (DVNU and BGVL)
    The picks are to be selected based on a priority
    top priority is given to SOURCE wayrig
    If a given pick does not have a wayrig, SOURCE, then accept IPL
    Finally, if neither the wayrig, or IPL SOURCE are available,
    accept the GOVT pick
    Thus, for 100012802307W502, where there are multiple PLSR picks, we
    want the one with the highest available priority
    (the 100012802307W502 PLSR 4238 14399 wayrig)
    row
    For 101070403227W300, which does not have a PLSR pick, we need to consider
    the qualifying equivalent picks and the highest applicable priority for
    these picks is where SOURCE = GOVT -> rows
    101070403227W300 BGVL 800 14399 GOVT
    101070403227W300 DVNU 855.6 14399 GOVT
    Thus, the final condition that
    should there be 2 or more picks whose priority is the same, then we
    want the one with the shallowest DEPTH
    row
    101070403227W300 BGVL 800 14399 GOVT
    Thus the desired final results
    ENTITY FORM DEPTH EQUIV SOURCE
    100012802307W502 PLSR 4238 14399 wayrig
    101070403227W300 BGVL 800 14399 GOVT
    ** Constraints
    It is most desireable to achieve this without having to create
    physical tables and/or views as the query(ies) must run against
    a public database where users do not have create table privileges.
    If anyone has solutions that include physical tables, please submit
    these anyways as they may help us devise the ultimate approach that
    we are seeking.
    More info (in case this is helpful)
    I have been working on this and variations of this problem for
    a little while.
    Here is a query that was submitted to me via this discussion group
    sometime ago on a similar problem
    select ENTITY, FORM, MIN(DECODE ( SOURCE,'wayrig',1,'IPL',2, 3)) PICK_PRIORITY
    from entities
    where EQUIV = '14399'
    GROUP BY ENTITY, FORM
    ENTITY FORM PICK_PRIORITY
    100012802307W502 DVNU 2
    100012802307W502 PLSR 1
    101070403227W300 BGVL 3
    101070403227W300 DVNU 3
    as you can see, the above query gets me partially where I need to go.
    Unfortunately, I have not been able to adapt the above query in such a
    way as to get the rest of the information related to the selected ENTITY;
    that is, the DEPTH, EQUIV, and SOURCE values are not present in the
    selected data.
    And of course, the above is only a piece of the puzzle as it does not
    get me a single row per selected ENTITY.
    Thanks for your consideration
    null

    "bounoe",
    I am a little bit confused, because what you are asking for and the sample result seem to be in slight conflict. What you ask for does not require that equiv = '14399', but your results seem to.
    So, if equiv must equal '14399', then
    SELECT DISTINCT entity, form, depth, equiv, source
    FROM entities
    WHERE equiv = '14399'
    AND (entity,
    DECODE(form,'PLSR',1,2),
    depth,
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)) IN
    (SELECT entity,
    DECODE(form,'PLSR',1,2),
    MIN(depth),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)
    FROM entities
    WHERE equiv = '14399'
    AND (entity,
    DECODE(form,'PLSR',1,2),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)) IN
    (SELECT entity,
    DECODE(form,'PLSR',1,2),
    MIN(DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4))
    FROM entities
    WHERE equiv = '14399'
    AND (entity,DECODE(form,'PLSR',1,2)) IN
    (SELECT entity,
    MIN(DECODE(form,'PLSR',1,2))
    FROM entities
    WHERE equiv = '14399'
    GROUP BY entity)
    GROUP BY entity,DECODE(form,'PLSR',1,2))
    GROUP BY entity,
    DECODE(form,'PLSR',1,2),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4));
    ENTITY FORM DEPTH EQUIV SOURCE
    100012802307W502 PLSR 4238 14399 wayrig
    101070403227W300 BGVL 800 14399 GOVT
    If equiv need not equal '14399':
    SELECT DISTINCT entity, form, depth, equiv, source
    FROM entities
    WHERE (entity,
    DECODE(form,'PLSR',1,2),
    depth,
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)) IN
    (SELECT entity,
    DECODE(form,'PLSR',1,2),
    MIN(depth),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)
    FROM entities
    WHERE (entity,
    DECODE(form,'PLSR',1,2),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4)) IN
    (SELECT entity,
    DECODE(form,'PLSR',1,2),
    MIN(DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4))
    FROM entities
    WHERE (entity,DECODE(form,'PLSR',1,2)) IN
    (SELECT entity,
    MIN(DECODE(form,'PLSR',1,2))
    FROM entities
    GROUP BY entity)
    GROUP BY entity,DECODE(form,'PLSR',1,2))
    GROUP BY entity,
    DECODE(form,'PLSR',1,2),
    DECODE(source,'wayrig',1,'IPL',2,'GOVT',3,4));
    ENTITY FORM DEPTH EQUIV SOURCE
    100012802307W502 PLSR 4238 14399 wayrig
    101070403227W300 DVNU 855 14390 IPL
    If neither of these is exactly what you need, please let me know.
    Barbara
    null

  • Oracle.toplink.internal.helper.NonSynchronizedVector exception

    I get following exception when invoking session bean from EJB client generated by JDev (EJB JPA project). Session bean returns the list of value objects created using TopLink Essentials based JPA native query. Does anybody know what is causing this exception and if there is a workaround?
    java.lang.ClassCastException: oracle.toplink.internal.helper.NonSynchronizedVector
    List<ProfileBasicVO> profiles = searchFacade.queryBasicProfilesByLastName( partialName );
    I get exception at this point:
    for( ProfileBasicVO profile: profiles ) {
    System.out.println( "lastName = " + profile.getLastName() );
    ...

    I changed the code to return List and I added mapping as a second parameter:
    public List queryBasicProfilesByLastName(String partialName) {
    Query basicProfileQuery =em.createNativeQuery( "findBasicProfilesByLastName", "BasicProfileResults" );
    return basicProfileQuery.getResultList();
    It fails with following exception:
    Internal Exception: java.sql.SQLException: SQL string is not QueryError Code: 17128
    and the query is defined as
    <query>
    select o.last_name as LAST_NAME,
    o.first_name as FIRST_NAME,
    o.middle_name as MIDDLE_NAME,
    o.birth_date as BIRTH_DATE,
    o.sex_code as SEX_CODE,
    a.height_cm as HEIGHT_CM,
    a.weight_kg as WEIGHT_KG,
    o.PERSON_ID as PERSON_ID
    from offenders o,
    person_bookings b,
    person_physical_attributes a
    where o.PERSON_ID = b.PERSON_ID
    and b.PERSON_BOOK_ID = a.PERSON_BOOK_ID
    and o.last_name = 'POTTER'
    </query>
    Mapping is defined as:
    <sql-result-set-mapping name="BasicProfileResults">     
    <entity-result entity-class="entities.Persons">
    <field-result column="LAST_NAME" name="lastName"/>
    <field-result column="FIRST_NAME" name="firstName"/>
    <field-result column="MIDDLE_NAME" name="middleName"/>
    <field-result column="BIRTH_DATE" name="birthDate"/>
    <field-result column="SEX_CODE" name="sexCode"/>
    <field-result column="PERSON_ID" name="personId"/>
    </entity-result>
    <entity-result entity-class="entities.PersonPhysicalAttributes">
    <field-result column="HEIGHT_CM" name="heightCm"/>
    <field-result column="WEIGHT_KG" name="weightKg"/>
    </entity-result>
    </sql-result-set-mapping>
    I can execute the query manually without problem, i.e. it is valid query, but I still get exception

  • EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]

    I have a problem to access from application client to methods of session beans
    the problem haw to call this method "getcodesresultcampbean("ARTV")"
    EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3591)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3436)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
    at $Proxy306.findByRefCampagne(Unknown Source)
    at com.bellconsulting.praxys.stats.service.StatCampagneBean.getcodesresultcampbean(StatCampagneBean.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy305.getcodesresultcampbean(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    Caused by: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at org.postgresql.jdbc3.Jdbc3Connection.prepareStatement(Jdbc3Connection.java:37)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:266)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:151)
    at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1538)
    at org.hibernate.loader.Loader.doQuery(Loader.java:661)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
    at org.hibernate.loader.Loader.doList(Loader.java:2211)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
    at org.hibernate.loader.Loader.list(Loader.java:2090)
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
    at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
    at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
    at com.bellconsulting.praxys.stats.facades.ResultFacade.findByRefCampagne(ResultFacade.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    **************************code source************** ResultFacade******
    package com.bellconsulting.praxys.stats.facades;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Result;
    * @author idriss
    @Stateless
    public class ResultFacade implements ResultFacadeLocal {
    @PersistenceContext
    private EntityManager em;
    /** Creates a new instance of ResultFacade */
    public ResultFacade() {
    public void create(Result result) {
    em.persist(result);
    public void edit(Result result) {
    em.merge(result);
    public void destroy(Result result) {
    em.merge(result);
    em.remove(result);
    public Result find(Object pk) {
    return (Result) em.find(Result.class, pk);
    public List findAll() {
    return em.createQuery("select object(o) from Result as o").getResultList();
    public List findByRefCampagne (String campaignCode) {
    return em.createNamedQuery("Result.findByRefcampagne").setParameter("refcampagne", campaignCode).getResultList();
    *****************StatCampagneBean********
    package com.bellconsulting.praxys.stats.service;
    import com.bellconsulting.praxys.stats.facades.ResultFacadeLocal;
    import java.sql.Date;
    import javax.ejb.EJB;
    import javax.ejb.Stateful;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Campaign;
    import com.bellconsulting.praxys.stats.entities.Result;
    import com.bellconsulting.praxys.stats.facades.CampaignFacadeLocal;
    import java.util.Iterator;
    import java.util.List;
    * @author idriss
    @Stateful
    public class StatCampagneBean implements StatCampagneRemote {
    @EJB
    private CampaignFacadeLocal campaignFacade;
    private @EJB ResultFacadeLocal resultFacade;
    private String _campagnecode;
    /** Creates a new instance of StatCampagneBean */
    public StatCampagneBean() {
    public StatCampagneBean(String campagnecode)
    this._campagnecode= campagnecode;
    @PersistenceContext
    private EntityManager _manager;
    public int getnbreOKbean(String codecampagne) {
    //TODO implement getnbreOK
    Campaign camp= _manager.find(Campaign.class,codecampagne);
    return camp.getNbRepPositive();
    public void statCodesResultats(String nomcamp, String codecamp, Date datedebut, Date datefin) {
    //TODO implement statCodesResultats
    public String[ ] getcodesresultcampbean(String codecamp) {
    //TODO implement getcodesresultcampbean
    // _manager.getTransaction().begin();
    /* EntityManagerFactory emf = Persistence.createEntityManagerFactory("Result");
    EntityManager em = emf.createEntityManager();
    String querystring = "select object(r) from Result r"+" where r.refcampagne = ?1";
    Query query =em.createQuery(querystring).setParameter(1,codecamp);
    *for (Result r : coderesultList)
    coderesult[j++]= r.getResultPK().getCode().toString();
    // List<Result> coderesultList = query.getResultList();
    List<Result> coderesultList = resultFacade.findByRefCampagne(codecamp);
    Iterator<Result> itr = coderesultList.iterator();
    String[]codesresult =null;
    int j= 0;
    while (itr.hasNext()){
    codesresult[j++] =itr.next().getResultPK().getCode().toString();
    // _manager.getTransaction().commit();
    return codesresult;
    *********************Application client *************
    package application.praxys;
    import com.bellconsulting.praxys.stats.service.StatCampagneRemote;
    import javax.swing.JOptionPane;
    import stats.praxys.*;
    * @author idriss
    public class Main {
    /** Creates a new instance of Main */
    public Main() {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    // InitialContext ctx;
    String[] nbreok =null ;
    int c =0;
    /* try {
    ctx = new InitialContext();
    StatCampagneRemote simpleSession = (StatCampagneRemote) ctx.lookup(StatCampagneRemote.class.getName());
    nbreok = simpleSession.getnbreOK("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa"+" "+nbreok);
    } catch (NamingException ex)
    TeleVenteServiceLocator tvLocator = new TeleVenteServiceLocator();
    StatCampagneRemote statCampagneBean = (StatCampagneRemote)tvLocator.getCampaignService();
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq");
    nbreok=statCampagneBean.getcodesresultcampbean("ARTV");
    //nbreok =statCampagneBean.getnbreOKbean("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa "+ nbreok[1]);
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq"+nbreok[2]);
    ***************Result entity bean*********
    package com.bellconsulting.praxys.stats.entities;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.EmbeddedId;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    * Entity class Result
    * @author idriss
    @Entity
    @Table(name = "result")
    @NamedQueries( {
    @NamedQuery(name = "Result.findByCode", query = "SELECT r FROM Result r WHERE r.resultPK.code = :code"),
    @NamedQuery(name = "Result.findByLibelle", query = "SELECT r FROM Result r WHERE r.libelle = :libelle"),
    @NamedQuery(name = "Result.findByPriorite", query = "SELECT r FROM Result r WHERE r.priorite = :priorite"),
    @NamedQuery(name = "Result.findByPrix", query = "SELECT r FROM Result r WHERE r.prix = :prix"),
    @NamedQuery(name = "Result.findByResType", query = "SELECT r FROM Result r WHERE r.resType = :resType"),
    @NamedQuery(name = "Result.findByRefcampagne", query = "SELECT r FROM Result r WHERE r.resultPK.refcampagne = :refcampagne"),
    @NamedQuery(name = "Result.findByRetValue", query = "SELECT r FROM Result r WHERE r.retValue = :retValue"),
    @NamedQuery(name = "Result.findByRetUnit", query = "SELECT r FROM Result r WHERE r.retUnit = :retUnit")
    public class Result implements Serializable {
    * EmbeddedId primary key field
    @EmbeddedId
    protected ResultPK resultPK;
    @Column(name = "libelle")
    private String libelle;
    @Column(name = "priorite", nullable = false)
    private int priorite;
    @Column(name = "prix", nullable = false)
    private float prix;
    @Column(name = "resType")
    private Integer resType;
    @Column(name = "retValue")
    private Integer retValue;
    @Column(name = "retUnit")
    private String retUnit;
    @JoinColumn(name = "refcampagne", referencedColumnName = "code", insertable = false, updatable = false)
    @ManyToOne
    private Campaign campaign;
    /** Creates a new instance of Result */
    public Result() {
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    public Result(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    * @param priorite the priorite of the Result
    * @param prix the prix of the Result
    public Result(ResultPK resultPK, int priorite, float prix) {
    this.resultPK = resultPK;
    this.priorite = priorite;
    this.prix = prix;
    * Creates a new instance of ResultPK with the specified values.
    * @param refcampagne the refcampagne of the ResultPK
    * @param code the code of the ResultPK
    public Result(String refcampagne, String code) {
    this.resultPK = new ResultPK(refcampagne, code);
    * Gets the resultPK of this Result.
    * @return the resultPK
    public ResultPK getResultPK() {
    return this.resultPK;
    * Sets the resultPK of this Result to the specified value.
    * @param resultPK the new resultPK
    public void setResultPK(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Gets the libelle of this Result.
    * @return the libelle
    public String getLibelle() {
    return this.libelle;
    * Sets the libelle of this Result to the specified value.
    * @param libelle the new libelle
    public void setLibelle(String libelle) {
    this.libelle = libelle;
    * Gets the priorite of this Result.
    * @return the priorite
    public int getPriorite() {
    return this.priorite;
    * Sets the priorite of this Result to the specified value.
    * @param priorite the new priorite
    public void setPriorite(int priorite) {
    this.priorite = priorite;
    * Gets the prix of this Result.
    * @return the prix
    public float getPrix() {
    return this.prix;
    * Sets the prix of this Result to the specified value.
    * @param prix the new prix
    public void setPrix(float prix) {
    this.prix = prix;
    * Gets the resType of this Result.
    * @return the resType
    public Integer getResType() {
    return this.resType;
    * Sets the resType of this Result to the specified value.
    * @param resType the new resType
    public void setResType(Integer resType) {
    this.resType = resType;
    * Gets the retValue of this Result.
    * @return the retValue
    public Integer getRetValue() {
    return this.retValue;
    * Sets the retValue of this Result to the specified value.
    * @param retValue the new retValue
    public void setRetValue(Integer retValue) {
    this.retValue = retValue;
    * Gets the retUnit of this Result.
    * @return the retUnit
    public String getRetUnit() {
    return this.retUnit;
    * Sets the retUnit of this Result to the specified value.
    * @param retUnit the new retUnit
    public void setRetUnit(String retUnit) {
    this.retUnit = retUnit;
    * Gets the campaign of this Result.
    * @return the campaign
    public Campaign getCampaign() {
    return this.campaign;
    * Sets the campaign of this Result to the specified value.
    * @param campaign the new campaign
    public void setCampaign(Campaign campaign) {
    this.campaign = campaign;
    * Returns a hash code value for the object. This implementation computes
    * a hash code value based on the id fields in this object.
    * @return a hash code value for this object.
    @Override
    public int hashCode() {
    int hash = 0;
    hash += (this.resultPK != null ? this.resultPK.hashCode() : 0);
    return hash;
    * Determines whether another object is equal to this Result. The result is
    * <code>true</code> if and only if the argument is not null and is a Result object that
    * has the same id field values as this object.
    * @param object the reference object with which to compare
    * @return <code>true</code> if this object is the same as the argument;
    * <code>false</code> otherwise.
    @Override
    public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof Result)) {
    return false;
    Result other = (Result)object;
    if (this.resultPK != other.resultPK && (this.resultPK == null || !this.resultPK.equals(other.resultPK))) return false;
    return true;
    * Returns a string representation of the object. This implementation constructs
    * that representation based on the id fields.
    * @return a string representation of the object.
    @Override
    public String toString() {
    return "com.bellconsulting.praxys.stats.entities.Result[resultPK=" + resultPK + "]";
    Message was edited by:
    081283

    Try posting this on the EJB forum:
    http://forum.java.sun.com/forum.jspa?forumID=13

  • XQuery not returning any results when doc contains ENTITY refs

    Dear Forum members,
    I am a bdbxml newbie so please be gentle.
    I am trying to run xqueries against a TEI P5 document on bdxml 2.4.13 using Oxygen 9 (I'm also using Python and the API - it's not working either)
    My XML contains transcripts of poems written in medieval Welsh. There are a lot of Entity references which I am including at the start of the document as:
    <?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" type="xml"?>
    <!DOCTYPE TEI [
    <!ENTITY aacute     "&#x00E1;"> <!-- LATIN SMALL LETTER A WITH ACUTE -->
    <!ENTITY Aacute     "&#x00C1;"> <!-- LATIN CAPITAL LETTER A WITH ACUTE -->
    <!ENTITY acirc     "&#x00E2;"> <!-- LATIN SMALL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY Acirc     "&#x00C2;"> <!-- LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY agrave     "&#x00E0;"> <!-- LATIN SMALL LETTER A WITH GRAVE -->
    <!ENTITY Agrave     "&#x00C0;"> <!-- LATIN CAPITAL LETTER A WITH GRAVE -->
    <!ENTITY aring     "&#x00E5;"> <!-- LATIN SMALL LETTER A WITH RING ABOVE -->
    <!ENTITY Aring     "&#x00C5;"> <!-- LATIN CAPITAL LETTER A WITH RING ABOVE -->
    <!ENTITY atilde     "&#x00E3;"> <!-- LATIN SMALL LETTER A WITH TILDE -->
    <!ENTITY Atilde     "&#x00C3;"> <!-- LATIN CAPITAL LETTER A WITH TILDE -->
    <!ENTITY auml     "&#x00E4;"> <!-- LATIN SMALL LETTER A WITH DIAERESIS -->
    <!ENTITY Auml     "&#x00C4;"> <!-- LATIN CAPITAL LETTER A WITH DIAdERESIS -->
    <!ENTITY aelig     "&#x00E6;"> <!-- LATIN SMALL LETTER AE -->
    <!ENTITY AElig     "&#x00C6;"> <!-- LATIN CAPITAL LETTER AE -->
    <!ENTITY ccedil     "&#x00E7;"> <!-- LATIN SMALL LETTER C WITH CEDILLA -->
    <!ENTITY Ccedil     "&#x00C7;"> <!-- LATIN CAPITAL LETTER C WITH CEDILLA -->
    <!ENTITY eth     "&#x00F0;"> <!-- LATIN SMALL LETTER ETH -->
    <!ENTITY ETH     "&#x00D0;"> <!-- LATIN CAPITAL LETTER ETH -->
    <!ENTITY eacute     "&#x00E9;"> <!-- LATIN SMALL LETTER E WITH ACUTE -->
    <!ENTITY Eacute     "&#x00C9;"> <!-- LATIN CAPITAL LETTER E WITH ACUTE -->
    <!ENTITY ecirc     "&#x00EA;"> <!-- LATIN SMALL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY Ecirc     "&#x00CA;"> <!-- LATIN CAPITAL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY egrave     "&#x00E8;"> <!-- LATIN SMALL LETTER E WITH GRAVE -->
    <!ENTITY Egrave     "&#x00C8;"> <!-- LATIN CAPITAL LETTER E WITH GRAVE -->
    <!ENTITY euml     "&#x00EB;"> <!-- LATIN SMALL LETTER E WITH DIAERESIS -->
    <!ENTITY Euml     "&#x00CB;"> <!-- LATIN CAPITAL LETTER E WITH DIAERESIS -->
    <!ENTITY iacute     "&#x00ED;"> <!-- LATIN SMALL LETTER I WITH ACUTE -->
    <!ENTITY Iacute     "&#x00CD;"> <!-- LATIN CAPITAL LETTER I WITH ACUTE -->
    <!ENTITY icirc     "&#x00EE;"> <!-- LATIN SMALL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY Icirc     "&#x00CE;"> <!-- LATIN CAPITAL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY igrave     "&#x00EC;"> <!-- LATIN SMALL LETTER I WITH GRAVE -->
    <!ENTITY Igrave     "&#x00CC;"> <!-- LATIN CAPITAL LETTER I WITH GRAVE -->
    <!ENTITY iuml     "&#x00EF;"> <!-- LATIN SMALL LETTER I WITH DIAERESIS -->
    <!ENTITY Iuml     "&#x00CF;"> <!-- LATIN CAPITAL LETTER I WITH DIAERESIS -->
    <!ENTITY ntilde     "&#x00F1;"> <!-- LATIN SMALL LETTER N WITH TILDE -->
    <!ENTITY Ntilde     "&#x00D1;"> <!-- LATIN CAPITAL LETTER N WITH TILDE -->
    <!ENTITY oacute     "&#x00F3;"> <!-- LATIN SMALL LETTER O WITH ACUTE -->
    <!ENTITY Oacute     "&#x00D3;"> <!-- LATIN CAPITAL LETTER O WITH ACUTE -->
    <!ENTITY ocirc     "&#x00F4;"> <!-- LATIN SMALL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY Ocirc     "&#x00D4;"> <!-- LATIN CAPITAL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY ograve     "&#x00F2;"> <!-- LATIN SMALL LETTER O WITH GRAVE -->
    <!ENTITY Ograve     "&#x00D2;"> <!-- LATIN CAPITAL LETTER O WITH GRAVE -->
    <!ENTITY oslash     "&#x00F8;"> <!-- CIRCLED DIVISION SLASH -->
    <!ENTITY Oslash     "&#x00D8;"> <!-- LATIN CAPITAL LETTER O WITH STROKE -->
    <!ENTITY otilde     "&#x00F5;"> <!-- LATIN SMALL LETTER O WITH TILDE -->
    <!ENTITY Otilde     "&#x00D5;"> <!-- LATIN CAPITAL LETTER O WITH TILDE -->
    <!ENTITY ouml     "&#x00F6;"> <!-- LATIN SMALL LETTER O WITH DIAERESIS -->
    <!ENTITY Ouml     "&#x00D6;"> <!-- LATIN CAPITAL LETTER O WITH DIAERESIS -->
    <!ENTITY szlig     "&#x00DF;"> <!-- LATIN SMALL LETTER SHARP S -->
    <!ENTITY thorn     "&#x00FE;"> <!-- LATIN SMALL LETTER THORN -->
    <!ENTITY THORN     "&#x00DE;"> <!-- LATIN CAPITAL LETTER THORN -->
    <!ENTITY uacute     "&#x00FA;"> <!-- LATIN SMALL LETTER U WITH ACUTE -->
    <!ENTITY Uacute     "&#x00DA;"> <!-- LATIN CAPITAL LETTER U WITH ACUTE -->
    <!ENTITY ucirc     "&#x00FB;"> <!-- LATIN SMALL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY Ucirc     "&#x00DB;"> <!-- LATIN CAPITAL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY ugrave     "&#x00F9;"> <!-- LATIN SMALL LETTER U WITH GRAVE -->
    <!ENTITY Ugrave     "&#x00D9;"> <!-- LATIN CAPITAL LETTER U WITH GRAVE -->
    <!ENTITY uuml     "&#x00FC;"> <!-- LATIN SMALL LETTER U WITH DIAERESIS -->
    <!ENTITY Uuml     "&#x00DC;"> <!-- LATIN CAPITAL LETTER U WITH DIAERESIS -->
    <!ENTITY yacute     "&#x00FD;"> <!-- LATIN SMALL LETTER Y WITH ACUTE -->
    <!ENTITY Yacute     "&#x00DD;"> <!-- LATIN CAPITAL LETTER Y WITH ACUTE -->
    <!ENTITY yuml     "&#x00FF;"> <!-- LATIN SMALL LETTER Y WITH DIAERESIS -->
    <!ENTITY lab "<">
    <!ENTITY rab ">">
    <!ENTITY amp "&amp;">
    <!ENTITY dash "-">
    <!ENTITY delta "d">
    <!ENTITY macron "-">
    <!ENTITY mdash "-">
    <!ENTITY nbsp "">
    <!ENTITY pound "">
    <!ENTITY cdb "c">
    <!ENTITY ddb "d">
    <!ENTITY ldb "l">
    <!ENTITY rdb "r">
    <!ENTITY udb "u">
    <!ENTITY umac "u">
    <!ENTITY wacute "w">
    <!ENTITY wcirc "w">
    <!ENTITY Wcirc "W">
    <!ENTITY ycirc "y">
    <!ENTITY Ycirc "Y">
    <!ENTITY vbar "vbar">
    ]>
    <TEI xmlns="http://www.tei-c.org/ns/1.0">
    <teiHeader>
    <fileDesc>
    <titleStmt>
    <title>...
    When I try an run a simple xquery like //TEI I'm not get any results. However, if I hack the XML source to remove all entity references, remove the ENTITY declarations and reload the document into bdbxml then the xqueries work. Can anyone offer any insght into why this situation may have arisen and how I might get around it? It seems as if the presence of the ENTITY declarations is somehow effecting the internal index...
    all help appreciated,
    AL

    Big thanks to John,
    I've been a typical newbie and not really understood everything implied by John's very helpful answer in this thread. Now that I now understand how to reference namespaces correctly, John's previous answer really does hit the mark.
    Big thanks
    Here is the working code. The important thing to remember for any other newbies is to always preface the query with the namespace - which I was not doing.
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:body
    or
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:head
    etc.

  • Entity-Named Query Caching - Need live results from DB not Cached

    I've developed an application EJB3 web application which uses Entity Beans and NamedQueries to retrieve my results.
    Aswell as my main EJB3 web application I also have an external interface (Oracle Stored Procedure) which is updating data in my database tables. The problem is that the when the NamedQueries are called they only bring back "Cached" resultsets and not the live results that exists in the database at that time. If my Stored Procedure updates a value (or if I update a value via Toad for testing) the NamedQuery does not bring back these changes. From what I have read about NamedQueries it seems that they do actually query the live db but send back the cached values for performance reasons.
    Is there a way to turn off caching of Query results?
    If not is there another way to deal with this issue?
    ps. I'm using Jdev 10.1.3.4 and appserver 10.1.3.1

    Anyone?

  • WordPartCustomRefiners (Entity Extraction) - Can i display it in search result hover panel?

    Hi,
    We use Refiners that come from Entity Extraction (In the Refinement Web Part i select: WordPartCustomRefiners2, WordPartCustomRefiner4 etc.).
    In case i want to display that also in search result hover panel - is it possible?
    to set in the hoverpanel display template something like: ctx.currentitem.WordPartCustomRefiner4
    keren tsur

    Hi keren,
    Here is an article talking about how to display custom managed properties in the hover panel of search results, please check if it is what you are looking for:
    http://blogs.technet.com/b/tothesharepoint/archive/2013/09/17/how-to-display-values-from-custom-managed-properties-in-the-hover-panel-in-sharepoint-server-2013.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to create 'Query Result Object' entity?

    Hi Gurus,
    I have come across a situation where i need to create an entity [not a value node] of object type 'Query Result Object', and set the values.
    Its possible to create an entity of type 'Root object', but was not able to find a way to create other object types.
    Please find below, the details of the query result object:
    Component: CRMAUI
    Object: AUIHANAQR
    Object type: Query Result
    Attribute Structure: CRMS_AUI_SRCH_RESULT_HANA
    The above entity is part of the collection which in turn is the result set of a dynamic query search. Due to a particular requirement, we need to add some more entries of the same object type in the result in the 'search event' itself.
    Please find below, the details of the corresponding dynamic query object:
    Object: AUIQueryHANA
    Object type: Dynamic Query
    Kindly let me know if you have come across such situation before and please share the solution if you have any.
    Your help will be much appreciated.
    Thanks and regards,
    Arun N  K.

    Hello,
    In fact there is not really entities for query result object, it's entries in the result table.
    So you need to modify the search to add more results, usually there are some badi to do so, or maybe you can extend the class used to perform the query in order to add some results.
    Regards,
    Benoît

  • Filter results from Multi Entity Search/Global Search

    Hi,
    Could it be possible to filter results from MS CRM 2015 Multi entity search (global search) similar to RetrieveMultiple message plugin.
    Thanks

    Possibly, this could be BUG.
    Haven't experience this kind of issue...
    Cheers,
    Gulab Prasad
    Technology Consultant
    My Blog:
    Exchange Ranger
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Mobil.aftonbladet.se results in XML Parsing Error: undefined entity

    On Nokia N900.
    Was OK before, but now (since friday 27 aug 2010) gives:
    XML Parsing Error: undefined entity
    Location: http://mobil.aftonbladet.se/
    Line number 18, Column 366:
    ...

    Hi, thanks for the reply. That site is OK now.
    If you have time, check out mobil.dn.se, which gives similar error on my N900:
    XML Parsing Error: mismatched tag...
    Which sounds like their web-programmers need some basic training. But that site is displayed correctly by Firefox 3.5.6 on my PC. I suppose that version is more tolerant to errors in the web pages? Will the mobile version of Firefox be developed to be more like the PC version in that way?

  • Does an entity bean update result in ALL DB columns being updated?

    Hello,
    If I update a single field in my entity bean, will all the columns for the DB row be updated? -OR will only the changed column value be updated?
    Thank,
    Keith

    Only fields detected as persistent-dirty will be updated in the database record.
    Laurent

  • Entity Attribute Existence Check - Query Result Parameter not possible ?

    I already read the section of the ADF BC Developer Guide (9.6.2 Implementing an Efficient Existence Check).
    That works and maybe is the best solution, however I am working with a group of Forms Developers which are much more comfortable with writing SQL statements.
    Natural thing for them in this case was to define a declarative compare validator with the following Query Result:
    select PROD_ID from Products where PROD_ID=:ProdId
    where :ProdId is ServiceRequest.ProdId
    Is this possible with ADF BC ?
    Other possibility is to define a List Validator with the following Query Result:
    select PROD_ID from Products
    but this is not performant.
    I know the programmatic approach is always possible, but to make migration easier for Forms developers into the ADF BC world, the declarative SQL option should be available.
    Thanks,
    Claudio.

    This isn't possible out of the box in 10.1.3 since we don't support a mechanism to set the values of the bind variables. In 10.1.3, you would need to build a custom validation rule class (explained in section 26.9 "Implementing Custom Validation Rules") to make this declarative for others on your team.
    I wouldn't recommend the list validator in 10.1.3 for anything but the most trivial uses. This is because it's current implementation retrieves all rows from the query, then does the attribute comparison in memory.
    Among many, many other enhancements, we are greatly enhancing declarative business logic features of ADF Business Components for our 11g/Fusion release (the next major release), where this will be super-easy.

Maybe you are looking for

  • Exclamation Mark not typing

    Howdy, I have a user who is complaining that the Exclamation key isn't working. Replaced keyboard: no Exclamation mark. Same machine, same keyboard different account : Exclamation Mark works. Reboot, PRAM, SMU : no change Totally weird. Anyone see th

  • Giving "One to One" lessons as a gift. Is It Possible?

    Is it possible to give Apple "One to One" lessons as a gift? I may be able to obtain the Apple I.D. & password of that MAC user...or I may not. My aunt in New York City wants to give the "One to One" lessons as a gift to a friend, but the aunt rarely

  • Enumeration on BPM

    Hi , I am starting to work with BPM Suite and got this problem : modeling human Task ,seldom I have encountered some costants data type , for example I have created a BO based on XSD into witch I have defined an Enumeration. Now ,when I working with

  • Help Please i want to save a resulset(5 Columns) in arraylist

    how can i do it ???

  • How can I delete Apple software update?

    I am trying to updat Itunes, but with Windows 7 I am getting problems. I have read I need to delete all files, then try again ...I have deleted all except that the Apple software update program ...I cannot delete it!!!