You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 279 moved from a Google Code project.
Added by 2011-03-24T18:16:08.000Z by emailmat...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, v1.0
Original description
<b>What steps will reproduce the problem?</b>
1. Create 2 classes, one extending the other.
2. Create a object database connection.
3. Save an instance of both classes to the database.
4. Query all records of the base class of the 2 creates classes.
<code>public class Main
{
public static void main(String[] args)
{
ODatabaseObject db = new ODatabaseObjectTx("local:/opt/orientdb-1.0rc1-SNAPSHOT/databases/test").open("admin", "admin");
db.getEntityManager().registerEntityClasses("orient");
db.save(new A());
db.save(new B());
List<A> items = db.query(new OSQLSynchQuery<A>("select from A"));
System.out.println(items.size());
db.close();
}
}</code>
Where B is extending A.
<b>What is the expected output? What do you see instead?</b>
I expected to see a count of 2, but saw 1. The inheritance mapping was not done automatically, which I would expect in schema-less mode.
<b>Please use labels and text to provide additional information.</b>
inheritance, schema-less, object database
The text was updated successfully, but these errors were encountered:
This is Issue 279 moved from a Google Code project.
Added by 2011-03-24T18:16:08.000Z by emailmat...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, v1.0
Original description
The text was updated successfully, but these errors were encountered: