Schema Generation Ignore fields

42 views
Skip to first unread message

Francis West

unread,
Feb 18, 2014, 5:36:00 AM2/18/14
to orient-...@googlegroups.com
Hello,

I am using:
db.setAutomaticSchemaGeneration(true);
db.getEntityManager().registerClass(Foo.class);

I was wondering if it is possible to ignore a certain fields during schema generations? 

Thanks
Francis

Luca Garulli

unread,
Feb 18, 2014, 6:17:41 AM2/18/14
to orient-database
Hi,
yes: just set them as transient (Java keyword).

Lvc@



--
 
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Francis West

unread,
Feb 18, 2014, 7:00:03 AM2/18/14
to orient-...@googlegroups.com
Thanks!

I've updated the wiki to avoid this being asked again.

Regards
Francis

On 18/02/14 11:17, Luca Garulli wrote:
> Hi,
> yes: just set them as transient (Java keyword).
>
> Lvc@
>
>
>
> On 18 February 2014 11:36, Francis West <fra...@badape.net
> <mailto:fra...@badape.net>> wrote:
>
> Hello,
>
> I am using:
>
>
> db.setAutomaticSchemaGeneration(true);
> db.getEntityManager().registerClass(Foo.class);
>
>
> I was wondering if it is possible to ignore a certain fields during
> schema generations?
>
> Thanks
> Francis
>
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to orient-databa...@googlegroups.com
> <mailto:orient-database%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "OrientDB" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/orient-database/-jo7PcgLU5w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Luca Molino

unread,
Feb 18, 2014, 7:30:00 AM2/18/14
to orient-database
Hi Francis,

the transient keyword tells Orient to skip the class attribute so it won't generate the schema but won't also store its data.


2014-02-18 13:00 GMT+01:00 Francis West <fra...@badape.net>:
Thanks!

I've updated the wiki to avoid this being asked again.

Regards
Francis

On 18/02/14 11:17, Luca Garulli wrote:
Hi,
yes: just set them as transient (Java keyword).

Lvc@



On 18 February 2014 11:36, Francis West <fra...@badape.net
<mailto:fra...@badape.net>> wrote:

    Hello,

    I am using:


    db.setAutomaticSchemaGeneration(true);
    db.getEntityManager().registerClass(Foo.class);


    I was wondering if it is possible to ignore a certain fields during
    schema generations?

    Thanks
    Francis

    --

    ---
    You received this message because you are subscribed to the Google
    Groups "OrientDB" group.
    To unsubscribe from this group and stop receiving emails from it,

--

---
You received this message because you are subscribed to a topic in the
Google Groups "OrientDB" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/orient-database/-jo7PcgLU5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to

For more options, visit https://groups.google.com/groups/opt_out.

--

--- You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Luca Molino
Reply all
Reply to author
Forward
0 new messages