Top "Projection" questions

A projection is the transformation of a set of data from one form into another.

How to select a single field for all documents in a MongoDB collection?

In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this collection …

mongodb projection
Retrieve only the queried element in an object array in MongoDB collection

Suppose you have the following documents in my collection: { "_id":ObjectId("562e7c594c12942f08fe4192"), "shapes":[ { "shape":"square", "color":"…

mongodb mongodb-query aggregation-framework projection
Hibernate Query By Example and Projections

To make it short: hibernate doesn't support projections and query by example? I found this post: The code is this: …

java hibernate criteria projection
Calculating a LookAt matrix

I'm in the midst of writing a 3d engine and I've come across the LookAt algorithm described in the DirectX …

math graphics 3d projection
correcting fisheye distortion programmatically

BOUNTY STATUS UPDATE: I discovered how to map a linear lens, from destination coordinates to source coordinates. How do you …

math graphics geometry projection
Mouse / Canvas X, Y to Three.js World X, Y, Z

I've searched around for an example that matches my use case but cannot find one. I'm trying to convert screen …

three.js point projection mouse-coordinates
Hibernate criteria query using Max() projection on key field and group by foreign primary key

I'm having difficulty representing this query (which works on the database directly) as a criteria query in Hibernate (version 3.2.5): SELECT …

hibernate group-by projection foreign-keys many-to-one
How to call fromLatLngToDivPixel in Google Maps API V3?

I know that method exists and is documented, but I don't know how to get an MapCanvasProjection object.

javascript google-maps google-maps-api-3 projection
SQL DateDifference in a where clause

I m doing a query as follows: SELECT * FROM a WHERE DATEDIFF(D, a.DateValue, DateTimeNow) < 3; and not working …

sql sql-server datetime projection
Spring JPA native query with Projection gives "ConverterNotFoundException"

I'm using Spring JPA and I need to have a native query. With that query, I need to get only …

java spring spring-data-jpa projection