WSO2 and JPA configuration (JNDI)
Questions: I am trying to use JPA through WSO2 ESB. I have my entities in Module A, which is bundled to Module B, because Module A generates JAR and in WSO2 OSGi modules should be used. In Module A I ...
Questions: I am trying to use JPA through WSO2 ESB. I have my entities in Module A, which is bundled to Module B, because Module A generates JAR and in WSO2 OSGi modules should be used. In Module A I ...
Questions: I wish to set default value for a given column defined in DB, as explained here, without specifying it from my application. What I wish for Oracle JDBC to generate is the following; UPDATE ...
Questions: i am trying to display 2 columns data from db instead of * and i have used bellow query but it is not working. @Query(value = "Select empid,empname from employee group by empid", nativeQuer...
Questions: I’m creating a JPA query where I want to sort on an email address. The table I’m querying is a Member table. This Member can EITHER point at an Account OR an Invite. Whether one...
Questions: Let’s say we have such entities (skipping getters/setters, visibility parameters, annotations etc.) class TargetEntity { Integer id; List <Attribute> attributes;// one to many }...
Questions: There are 3 tables Label, Text and Language: @Entity public class Label { @Id @GeneratedValue private Long id; @ManyToOne @JoinColumn(name = "text_id") private Text text; } Then text: @Enti...
Questions: I want to understand if we can directly map our stored procedure resultset to nested java POJOs directly. I am having following POJO structure: public class Person { private PersonInformati...
Questions: I need to convert below SQL query into JPA criteria checking for last 3 days back based on the current date how to convert this native SQL query to JPA criteria query AND DATE(created_at) &...
Questions: I want to make a distinct select in my table with pagination, but it is claiming this error. Does anyone know how to solve it? org.postgresql.util.PSQLException: ERROR: for SELECT DISTINCT,...
Questions: I faced a problem in using entity name as a parameter in repository. SpEL support does not work in select & left join. I want to do select item from an entity and replace it into anothe...