You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2008/04/28 01:16:55 UTC
[jira] Updated: (OPENJPA-101) enhance JPQL Constructor Expressions
implementation
[ https://issues.apache.org/jira/browse/OPENJPA-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Linskey updated OPENJPA-101:
------------------------------------
Fix Version/s: (was: 1.1.0)
1.2.0
Sounds like a cool enhancement. I think that it would be nice to implement with both literals and parameters. However, I think it's out of scope of 1.1.0.
> enhance JPQL Constructor Expressions implementation
> ---------------------------------------------------
>
> Key: OPENJPA-101
> URL: https://issues.apache.org/jira/browse/OPENJPA-101
> Project: OpenJPA
> Issue Type: Improvement
> Components: query
> Reporter: wanyna
> Fix For: 1.2.0
>
>
> There are two tables A and B, I need to execute sql like
> "insert into A select ... from B".
> I use JPQL Constructor Expressions,
> select new A(...) from B, got A list then persist.
> But some fields of A depends on program context, not direct from B, so SELECT NEW clause should look like these :
> select new A(B.column1, 'xxx') from B, or
> select new A(null, B.column2) from B, or
> select new A(variable, B.column2) from B.
> Unfortunately, OpenJPA doesn't support this.
> I have to get the result object[] list and constuct A in my code now.
> If JPQL Constructor Expressions become more powerful, my code will be more simple then.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.