Re: [Neo] Object binding using annotations?

2008-08-15 Thread Jonas Bergvall
As I happen to like annotations I wonder if there is anybody out there
looking into e.g. using JPA annotations to do this, perhaps with some
additional Neo specific annotations? I think Emil and I talked about this
months ago offline.

//Jonas

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För
Peter Haensgen
Skickat: den 13 augusti 2008 10:49
Till: Neo user discussions
Ämne: Re: [Neo] Object binding using annotations?

Hi,

> has anyone implemented an object binding framework for Neo? I imagine
> sth. that allows to define fields and relationships in POJOs using
> annotations, and binds them using runtime code generation or
reflection.

no, I haven't, but I believe your question could also be read as: How do
I efficiently develop a domain-model for Neo?

Since I don't like annotated code and my special interest is
model-driven software development, I have built a little code generation
system for generating my domain classes. It consists of:

- a simple meta-model (defines things like "Namespace", "Bean",
"Attribute", "Relation", and so on...) built using the Eclipse Modeling
Framework
- some code generation templates based on openArchitectureWare Xpand for
generating bean classes (this is how I call the domain classes) and
factory classes for controlling the beans lifecycle
- some additional classes forming the runtime support for the generated
code

Works great!

(And sorry, no, it's not public yet, as it is still quite
experimental...)

regards,
Peter

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Emil Eifrem
On Wed, Aug 13, 2008 at 10:54 AM, Peter Neubauer
<[EMAIL PROTECTED]> wrote:
> Wow,
> this sounds cool, need to check that out. It might well be one more
> very interesting way to harness DDD with Neo ... feel free to share
> any public info on this here!

+1 on that. Sounds very interesting!

Cheers,

-- 
Emil Eifrém, CEO [EMAIL PROTECTED]
Neo Technology, www.neotechnology.com
Cell: +46 733 462 271 | US: 206 403 8808
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Peter Neubauer
Wow,
this sounds cool, need to check that out. It might well be one more
very interesting way to harness DDD with Neo ... feel free to share
any public info on this here!

/peter

GTalk:neubauer.peter
Skypepeter.neubauer
ICQ18762544
Phone   +46704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Wed, Aug 13, 2008 at 10:49 AM, Peter Haensgen
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>> has anyone implemented an object binding framework for Neo? I imagine
>> sth. that allows to define fields and relationships in POJOs using
>> annotations, and binds them using runtime code generation or
> reflection.
>
> no, I haven't, but I believe your question could also be read as: How do
> I efficiently develop a domain-model for Neo?
>
> Since I don't like annotated code and my special interest is
> model-driven software development, I have built a little code generation
> system for generating my domain classes. It consists of:
>
> - a simple meta-model (defines things like "Namespace", "Bean",
> "Attribute", "Relation", and so on...) built using the Eclipse Modeling
> Framework
> - some code generation templates based on openArchitectureWare Xpand for
> generating bean classes (this is how I call the domain classes) and
> factory classes for controlling the beans lifecycle
> - some additional classes forming the runtime support for the generated
> code
>
> Works great!
>
> (And sorry, no, it's not public yet, as it is still quite
> experimental...)
>
> regards,
> Peter
>
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
>
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Peter Haensgen
Hi,

> has anyone implemented an object binding framework for Neo? I imagine
> sth. that allows to define fields and relationships in POJOs using
> annotations, and binds them using runtime code generation or
reflection.

no, I haven't, but I believe your question could also be read as: How do
I efficiently develop a domain-model for Neo?

Since I don't like annotated code and my special interest is
model-driven software development, I have built a little code generation
system for generating my domain classes. It consists of:

- a simple meta-model (defines things like "Namespace", "Bean",
"Attribute", "Relation", and so on...) built using the Eclipse Modeling
Framework
- some code generation templates based on openArchitectureWare Xpand for
generating bean classes (this is how I call the domain classes) and
factory classes for controlling the beans lifecycle
- some additional classes forming the runtime support for the generated
code

Works great!

(And sorry, no, it's not public yet, as it is still quite
experimental...)

regards,
Peter

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Peter Neubauer
Ahh yes,
sorry for not mentioning Andreas' cool work on that front!

/peter

GTalk: neubauer.peter
Skype peter.neubauer
ICQ 18762544
GTalk neubauer.peter
Phone +46704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.




On Wed, Aug 13, 2008 at 9:12 AM, Andreas Ronge <[EMAIL PROTECTED]> wrote:
> Neo4j.rb does support object bindings (and soon other nice things like
> a graph query language DSL)
> http://github.com/andreasronge/neo4j/tree/master
>
> /Andreas
>
> On Wed, Aug 13, 2008 at 8:54 AM, Nils Kaiser <[EMAIL PROTECTED]> wrote:
>> Hello folks,
>>
>> has anyone implemented an object binding framework for Neo? I imagine
>> sth. that allows to define fields and relationships in POJOs using
>> annotations, and binds them using runtime code generation or reflection.
>>
>> Cheers,
>>
>> Nils
>> ___
>> Neo mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
>
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Peter Neubauer
Nils,
if you are the adventurous type, head over to www.qi4j.org and start
building an extremely DDD focused proejct while still being in plain
Java (syntax). Neo4j is one of the backends you can use for storing
entities.

However, for more "normal" use, there is the Meta package for applying
constraints and structure to a Node Space,
http://components.neo4j.org/neo-meta/, and I think there are some
folks here using it already?

Third on the roll-your-own front, there are some pointers in the wiki,
e.g. http://wiki.neo4j.org/content/Design_Guide ...

Plese let us know if that helps!

/peter

GTalk: neubauer.peter
Skype peter.neubauer
ICQ 18762544
GTalk neubauer.peter
Phone +46704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.




On Wed, Aug 13, 2008 at 8:54 AM, Nils Kaiser <[EMAIL PROTECTED]> wrote:
> Hello folks,
>
> has anyone implemented an object binding framework for Neo? I imagine
> sth. that allows to define fields and relationships in POJOs using
> annotations, and binds them using runtime code generation or reflection.
>
> Cheers,
>
> Nils
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
>
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Object binding using annotations?

2008-08-13 Thread Andreas Ronge
Neo4j.rb does support object bindings (and soon other nice things like
a graph query language DSL)
http://github.com/andreasronge/neo4j/tree/master

/Andreas

On Wed, Aug 13, 2008 at 8:54 AM, Nils Kaiser <[EMAIL PROTECTED]> wrote:
> Hello folks,
>
> has anyone implemented an object binding framework for Neo? I imagine
> sth. that allows to define fields and relationships in POJOs using
> annotations, and binds them using runtime code generation or reflection.
>
> Cheers,
>
> Nils
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Object binding using annotations?

2008-08-12 Thread Nils Kaiser
Hello folks,

has anyone implemented an object binding framework for Neo? I imagine 
sth. that allows to define fields and relationships in POJOs using 
annotations, and binds them using runtime code generation or reflection.

Cheers,

Nils
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user