Hi Jason,
it contained several fields before (name, address, etc).
At first, the list was not inside the entity A. Dataviewer showed the entity
A.
After that, I add that list of another Entity (say it entity B). The
dataviewer still showed entity A. While entity A contains a single instance
of entity B, adding list of B caused error on saving (as I understood, an
entity cannot contains more than one field of another entity). Therefore I
removed the list of entity B (I'm going to separate it in a new entity using
'foreign key' in entity A).
After I removed the list of entity B, entity A is not shown in data viewer
anymore.
Yes I meant seeing that in Admin Console.
My application id is rumah-makan, and the entity name is Restaurant.
Below I posted the snippet of the entity.
Best regards,
Heru
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Restaurant {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String name;
@Persistent
private String address;
@Persistent
private String telephone;
// Image is the entity B
@Persistent
private Image picture;
// This is the field I removed
//@Persistent
//private List<Image> imageList
}
2009/8/14 Jason (Google) <[email protected]>
> The ID is not an indexed property, per se. So if the list was the only
> other property and you subsequently removed it, that would explain your
> issue. If not, then there's another issue. Can you reply with your updated
> model definition and your application ID? I assume that you're seeing this
> in the Admin Console and not your local data viewer?
> - Jason
>
> On Thu, Aug 13, 2009 at 4:28 AM, Heru Martinus Salim <
> [email protected]> wrote:
>
>> Hi Nick,
>>
>> thanks for your reply.
>> It was there before. So from my understanding. There are indexed fields.
>> And the field I removed was a list another entity.
>> So i think, it would not removed the indexed fields (at list the Id should
>> be indexed I guess).
>>
>> Regards,
>> Heru
>>
>> 2009/8/13 Nick Johnson (Google) <[email protected]>
>>
>>>
>>> Hi Heru,
>>>
>>> It's a known bug that if an entity has no indexed fields, it will not
>>> show up in the Admin Console data viewer.
>>>
>>> -Nick Johnson
>>>
>>> On Thu, Aug 13, 2009 at 11:51 AM, Heru Martinus
>>> Salim<[email protected]> wrote:
>>> > Hi all,
>>> >
>>> > I have a problem, that after updating the structure of my entity
>>> (removing a
>>> > field), I cannot see my entity anymore in the DataViewer of the apps
>>> > Dashboard.
>>> > Though as I tried to add a new data via my app, the data is there, and
>>> can
>>> > be retrieved.
>>> > Still the entity cannot be found in the dataviewer. Even when I use the
>>> GQL
>>> > to retrieve it using "select * from" syntax, it showed only "No
>>> Results"
>>> >
>>> > Has anyone experienced the same case?
>>> >
>>> > Regards,
>>> > Heru
>>> >
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> Nick Johnson, Developer Programs Engineer, App Engine
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---