help ...

How do I retrieve a User and the Company that it Work? and a company
with all Users?


My classes:

@PersistenceCapable(detachable = "true")
public class User implements Serializable  {

        public Usuario() {
        }

        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Key id;

        @Persistent
        private Empresa empresa;


-------------------------------------------------------------------------------------------------

@PersistenceCapable(detachable = "true")
public class Company implements Serializable {

        private static final long serialVersionUID = 1L;

        @PrimaryKey
        private String id;

        @Persistent(mappedBy = "empresa")
        @Element(dependent = "true")
        @Order(extensio...@extension(vendorName="datanucleus", key="list-
ordering", value="nomeUsuario asc, login asc"))
        private List<User> usuarios = new ArrayList<User>();

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to