google app engine - Is there a way to sort according to child entities properties in JDO (DataNucleus)? -


We have a parent - child unit models which include the following:

  @ PersistenceCapable (Detachable = "true") public class field applied Serializable {@PrimaryKey private string name; @Passistent (mapped = "area") @ element (dependent = "true") private list & lt; Category & gt; Categories; } @PersistenceCapable (different = "true") applicable public class category does Serializable {@PrimaryKey @Persistent (valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension (vendorName = "datanucleus", key = "gae.encoded-PK", value = " True ") Private string key; @print private sector area; }  

When we recapture all the regions along with their categories, do we name the category?

I saw JDO query can be a setOrdering method, however Sort result unit is being applied to your baby unit and query properties.

We are currently operating like using tree-map, though, is that the JDO / GSQL would be much better to use.

No - including App Engine, questions so you can use a feature of the baby unit A basic unit can not query does not support. ().
If you can query the property of one, then you can think of what that would suit your usage case.

If your categories have unique names, then you can consider a different design where you use class name as the name of the class name followed by the name of the string, after that you have to enter each field unit (an indexed, multi- Properties can be stored as a property), a list of the string name string can be stored in it.
With this kind of design, you will manage the parent's relationship based on the list of the original key names, through the support of JDO for ownership relationships,


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -