tag:blogger.com,1999:blog-8954277266683132656.post7291990824746229551..comments2022-11-16T15:20:29.142+02:00Comments on Mysema Blog: Querying Hibernate with QuerydslTimo Westkämperhttp://www.blogger.com/profile/11246082132389917026noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-8954277266683132656.post-51257183862509374582014-04-12T19:19:34.396+03:002014-04-12T19:19:34.396+03:00No, that's unfortunately not possible.No, that's unfortunately not possible.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-15387368191010590322014-03-26T08:33:09.803+02:002014-03-26T08:33:09.803+02:00Is it possible to left join the entities with no r...Is it possible to left join the entities with no relation using 'on' condtion alone in JPAQuery?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-46515413262567401672014-02-11T22:59:32.433+02:002014-02-11T22:59:32.433+02:00You can use MappingProjection for typesafe project...You can use MappingProjection for typesafe projections: http://www.querydsl.com/static/querydsl/3.3.1/apidocs/index.html?com/mysema/query/types/MappingProjection.htmlTimo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-77399943963875987592014-01-31T16:14:59.355+02:002014-01-31T16:14:59.355+02:00I think that it would be nice to have projections ...I think that it would be nice to have projections that guaranties types-safety. Currently both constructor and bean population uses reflection that don't notices about problem in the compile time. Something like RowMapper that exists in Spring JDBC would be helpful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-49370502013839397022013-10-24T13:29:47.874+03:002013-10-24T13:29:47.874+03:00Querydsl supports for example constructor and bean...Querydsl supports for example constructor and bean population. Those options are available via the Projections class.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-37391454944398802052013-10-24T13:25:31.060+03:002013-10-24T13:25:31.060+03:00Hi using HQL we can get the result set as POJO cla...Hi using HQL we can get the result set as POJO class(not the domain object) for eg a transfer object. How can we acheive the same with Querydsl. I can't see any reference for returning the query results as POJO classes.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-46792651999741237542013-09-25T09:24:14.870+03:002013-09-25T09:24:14.870+03:00Yes.Yes.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-60168990988045229512013-09-25T02:35:47.559+03:002013-09-25T02:35:47.559+03:00Is QueryDSL open source? Is QueryDSL open source? otojuniorhttps://www.blogger.com/profile/13947057834449427374noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-27326892962816767412013-01-17T09:06:02.356+02:002013-01-17T09:06:02.356+02:00I love querydslI love querydslAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-63769648680958914672012-12-17T23:32:30.214+02:002012-12-17T23:32:30.214+02:00Excellent Tool ... TYExcellent Tool ... TYAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-90216116925813454892012-11-13T11:39:57.536+02:002012-11-13T11:39:57.536+02:00Hello,
I have the following Situation using queryD...Hello,<br />I have the following Situation using queryDsl with Maven.<br /><br />My Project is using a 3rd Party lib containing all Entity Classes for my Prject. Lets call this 3rd party lib MyDomainsPrj.<br /><br />In my App lets call it MyAppPrj I am referring to MyDomainsPrj and here I want to use the generated Q..<br /><br />How can I configure apt-maven-plugin in MyAppPrj to proccess Entity files in MyDomainsPrj.jar and not in MyAppPrj?<br /><br />Best Regards!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-2801464139461558382012-10-05T12:06:43.318+03:002012-10-05T12:06:43.318+03:00Thanks a lot, May!
Let me know if you find any ro...Thanks a lot, May!<br /><br />Let me know if you find any rough edges.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-17825910253170500732012-10-05T12:05:56.350+03:002012-10-05T12:05:56.350+03:00Thanks, Joist looks nice as well, but does your en...Thanks, Joist looks nice as well, but does your entity generation approach support inheritance properly? Keeping property change tracking in sessions might make your domain objects cleaner.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-87612732374015610292012-10-05T12:01:16.980+03:002012-10-05T12:01:16.980+03:00expr1.and(expr2).or(expr3.and(expr4))expr1.and(expr2).or(expr3.and(expr4))Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-26797954975261039282012-10-05T12:00:44.966+03:002012-10-05T12:00:44.966+03:00Thanks a lot.Thanks a lot.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-69267164571707161872012-10-05T12:00:08.781+03:002012-10-05T12:00:08.781+03:00It won't work if you put the configuration und...It won't work if you put the configuration under the execution, try putting the configuration directly under the plugin, if you want to use mvn apt:process directly.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-52693015713618764512012-10-03T23:04:43.849+03:002012-10-03T23:04:43.849+03:00can i get generate Q classes without the mvn insta...can i get generate Q classes without the mvn install? mvn apt:process doesn't work for. i'm looking from something faster than mvn install.denovnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-66948192127941343852012-05-27T17:40:05.210+03:002012-05-27T17:40:05.210+03:00Great work, Timo!
I discovered Querydsl reading a...Great work, Timo!<br /><br />I discovered Querydsl reading a post at Overflow where you say it combines "the expressivity and conciseness of HQL and the dynamic nature of Criteria". Your post was "biased" but you didn't lie.<br /><br />Besides, reading the documentation I could start using it in 5 minutes. I added the pom.xml dependencies and plugin, run mvn clean install, created a query and saw it worked as expected.<br /><br />I will try it a little bit more and see if it meets my needs.<br /><br />Thank you very much for this awesome tool!Mayhttps://www.blogger.com/profile/08246791295716779451noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-42118511328380473702012-05-12T05:22:56.240+03:002012-05-12T05:22:56.240+03:00Looks really great. I've been doing the same s...Looks really great. I've been doing the same sort of thing with Joist (http://www.joist.ws), but generating the query object with non-APT/regular code generation (since I'm already generating the domain objects). Your query DSL looks very polished--nice work!Stephen Habermanhttps://www.blogger.com/profile/05412274950722949930noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-62204264209326510032012-05-11T12:10:31.041+03:002012-05-11T12:10:31.041+03:00Hi,
how do I write condition type:
WHERE (Expr1...Hi,<br /><br />how do I write condition type: <br />WHERE (Expr1 AND Expr2) OR (Expr3 AND Expr4)<br /><br />using query dsl?<br /><br />btw great tool :)Attila Mészároshttps://www.blogger.com/profile/11030759684961568458noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-69929910064482893372012-04-20T19:01:28.479+03:002012-04-20T19:01:28.479+03:00Good!!!
Please add tutorial for Netbeans and Quer...Good!!!<br /><br />Please add tutorial for Netbeans and QuerydslDanny Muñozhttps://www.blogger.com/profile/03657142586129144482noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-60410528757747608042012-03-20T18:20:47.742+02:002012-03-20T18:20:47.742+02:00Looks perfect. Playing with it for an hour and it ...Looks perfect. Playing with it for an hour and it is the best query solution I've ever tried.mskhttps://www.blogger.com/profile/06353768451871197809noreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-77136035160897123402012-02-27T21:48:43.422+02:002012-02-27T21:48:43.422+02:00QueryDSL is just awesome and an decent piece of qu...QueryDSL is just awesome and an decent piece of quality software. Thanks Timo!!! :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-26365836942970770762010-08-24T20:28:51.571+03:002010-08-24T20:28:51.571+03:00SQLAlchemy is for Python. Who cares?
Great work,...SQLAlchemy is for Python. Who cares?<br /><br />Great work, Timo!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8954277266683132656.post-2031372931753360422010-07-25T20:18:40.131+03:002010-07-25T20:18:40.131+03:00Actually you can do that in Querydsl since two yea...Actually you can do that in Querydsl since two years as well. I just didn't describe it before in a blog post.<br /><br />The XML overhead for Java builds is regrettable, but Maven and Ant are the standard build tools for Java, so I added integration guides for them. <br /><br />Querydsl itself doesn't require any XML configuration. All it needs is the APT configuration in the build tool of choice, which can be XML-based or not, and the Querydsl library dependencies.<br /><br />For a non-XML-based build tool for Java, consider using <a href="http://buildr.apache.org/" rel="nofollow">Apache Buildr</a>. It uses a Ruby DSL for declaring builds.Timo Westkämperhttps://www.blogger.com/profile/11246082132389917026noreply@blogger.com