Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
create unique user in application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leonardo de Araujo Domingues  
View profile  
 More options May 13 2012, 1:10 pm
From: Leonardo de Araujo Domingues <leonardo.ara...@dce.ufpb.br>
Date: Sun, 13 May 2012 14:10:55 -0300
Local: Sun, May 13 2012 1:10 pm
Subject: create unique user in application

How best to create profiles with unique id? That is, in one application,
users with UID's there, they should be treated as a primary key in SQL,
in short, there may be only one user at UID.

Example:

**Create user:*
UID: *1*
name: Leonard
email: leon...@mail.com
**Result: **OK*
*
*
**Create user:*
UID: *1*
name: Bill
email: B...@mail.com
**Result: **FAILED: User already exists with UID "1"*

I'm using the Embedded (neo4j-community - v1.7) in applications Java!

Thanks!

--
*Leonardo de Araújo Domingues*
Graduando em Sistemas de Informação - UFPB/Campus IV
Laborarório de Aplicação em Vídeo Digital - LAVID/UFPB


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options May 14 2012, 9:48 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Mon, 14 May 2012 15:48:54 +0200
Local: Mon, May 14 2012 9:48 am
Subject: Re: [Neo4j] create unique user in application
Leonardo,
for this usecase, there is the UniqueFactory for indexes, see
http://api.neo4j.org/current/org/neo4j/graphdb/index/UniqueFactory.html

which is exposed even through REST, see

http://docs.neo4j.org/chunked/snapshot/rest-api-unique-indexes.html

Is that what you are looking for?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j

On Sun, May 13, 2012 at 7:10 PM, Leonardo de Araujo Domingues


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo de Araujo Domingues  
View profile  
 More options May 14 2012, 3:41 pm
From: Leonardo de Araujo Domingues <leonardo.ara...@dce.ufpb.br>
Date: Mon, 14 May 2012 16:41:05 -0300
Local: Mon, May 14 2012 3:41 pm
Subject: Re: [Neo4j] create unique user in application

I got using IndexManager (
http://api.neo4j.org/current/org/neo4j/graphdb/index/IndexManager.html).
For when the application sends me a UID, just need to verify that the UID
already exists in the DBNeo4J,
and if not, will be registered, otherwise I throw an exception.

Anyway, your post will help me a lot because I saw that I need!

Thank you!

2012/5/14 Peter Neubauer <peter.neuba...@neotechnology.com>

--
*Leonardo de Araújo Domingues*
Graduando em Sistemas de Informação - UFPB/Campus IV
Laborarório de Aplicação em Vídeo Digital - LAVID/UFPB

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options May 14 2012, 3:55 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Mon, 14 May 2012 21:55:44 +0200
Local: Mon, May 14 2012 3:55 pm
Subject: Re: [Neo4j] create unique user in application

Please use the UniqueFactory as outlined, it uses the index-manager under the hood but does so in a transactional and atomic safe way.

Michael

Am 14.05.2012 um 21:41 schrieb Leonardo de Araujo Domingues:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »