sentence
stringlengths 1
1.38k
| label
stringclasses 3
values |
---|---|
Now the question, which actually are two questions: A) CODETERM2 gives me error on Eclipse, and advises me to add a cast, but this doesn't solve the error.
|
o
|
I don't know if I must an annotation or any other additional thing to CODETERM3 B) As I have specified, the primery key is composed by 3 concepts, and CODETERM4 is required.
|
o
|
JPA modelling is ok, but I don't know how to do the same in NOSQL .
|
o
|
Well, you haven't said _which_ NoSQL engine you're going to, which is pretty important.
|
p
|
Most NoSQL data stores don't support the concept of a composite primary key - and some of them won't allow you unique columns in the first place.
|
o
|
First, note that I work for a NoSQL vendor, URL_http://gigaspaces.com/ [ URL_http://gigaspaces.com/ ] - I'm not unbiased.
|
o
|
However, going from JPA to NoSQL is not hard, no matter what your engine is.
|
o
|
For GigaSpaces, you can use JPA to talk to the data grid with very few changes, for example, although then you're still stuck with JPA.
|
o
|
To really think about JPA, you need to think about your data as _data_ and not organizational stuff; you have a triplet, basically, which means your NoSQL data items consist of three data items (predicate, subject, object, like you've used.)
|
o
|
For most NoSQL engines you'll probably want an id there, too, just for efficiency's sake.
|
o
|
The ID is the "primary key," and enforcing unique triplets after that is going to be on _your_ end more than the NoSQL engine's end; this is one area where NoSQL "suffers" compared to SQL, but it's also where you find the greatest speed and storage improvements.
|
p
|
For some NoSQL engines, then, you'll build a document, consisting of the three data items, and you'd just query for that document before writing it into the database.
|
o
|
I could give you an example for many NoSQL engines (and certainly can for GigaSpaces) but I don't know which one you're targeting or why.
|
o
|
Thank you for your explanation.
|
p
|
I am using Spring Data Graph, and the neo4j, and I have read that composed Id aren't allowed.
|
o
|
Your idea of having an Id is not exaclty what I need, because I need to prove that there are no equal triplets.
|
o
|
You'd have to start a transaction, run a query, update the data if the query fails, in that case.
|
o
|
Neo4J is okay, although obviously I prefer our own product.
|
p
|
:).
|
o
|
I can imagine... :) Thank you very much!.
|
p
|
Mujer, your domain looks like it would be much easier modelled in the graph database itself.
|
p
|
As it is RDF like triplets that are annotated here.
|
o
|
You are right in that Spring Data Graph right now does not support compound keys.
|
o
|
We will look into that in the future, but I can't promise anything.
|
n
|
In the graph you could model your nodes being Concepts (URIs) and the type of relationship representing what you want to represent with that Concept.
|
o
|
CODESNIPPET_JAVA1 .
|
o
|
This could be easily modelled with Spring Data Graph (or also with the pure Neo4j API) CODESNIPPET_JAVA2 .
|
o
|
The eclipse error is annoying but just a wrong visualization, the AspectJ team is in the process of fixing that.
|
o
|
Hope that helps, if you need further advice just ask Michael .
|
o
|
Have a look at Kundera.
|
o
|
URL_http://mevivs.wordpress.com/2012/02/13/how-to-crud-and-jpa-association- handling-using-kundera/ [ URL_http://mevivs.wordpress.com/2012/02/13/how-to-crud - and-jpa-association-handling-using-kundera/] Use JPA over NoSql .
|
o
|
PlayOrm is another solution which is JPA-like but with noSQL specific features like you can do @NoSqlEmbedded on a List of Strings and it is embedded in that row leading to a table where each row is a different length than the other rows...this is a noSql common pattern which is why NoSql ORM's need a slight break from JPA.
|
o
|
PlayOrm also supports joins and S-SQL (scalable SQL).
|
p
|
later,Dean .
|
o
|
Alternative/compatible datastores for App Engine?
|
o
|
What other "nosql" databases are compatible (more or less) with the Google Appe Engine datastore.
|
o
|
Alternatively, what is a good abstraction layer/solution (free of charge) that abstracts between multiple database implementations including google app engine and my application for db access.
|
p
|
I'd like to develop an app for GAE but later deploy it on my own server, but I do not want to have to rewrite the db code.
|
o
|
Important Update: The app is developed in Java
so ideally the Data Abstraction Layer or any alternatives must be "Java friendly".
|
p
|
possible duplicate of [GAE webapp alternative working outside of GAE environment]( URL_http://stackoverflow.com/questions/5278308/gae-webapp - alternative-working-outside-of-gae-environment).
|
p
|
possible duplicate of [Use Google AppEngine datastore outside of AppEngine project]( URL_http://stackoverflow.com/questions/1149639/use-google-appengine - datastore-outside-of-appengine-project).
|
o
|
related to [Breaking out of the Google App Engine Python lock- in?
|
o
|
]( URL_http://stackoverflow.com/questions/892411/breaking-out-of-the-google-app - engine-python-lock-in).
|
o
|
Thanks for the comments.
|
o
|
Some of the links I found prior to posting.
|
o
|
The problem is, the application is developed in Java not python.
|
o
|
All the links mentioned are specific to python.
|
o
|
AppScale 1.4 supports GAE 1.3.5's Java runtime (link in my answer).
|
o
|
The URL_http://appscale.cs.ucsb.edu/ [AppScale] project has decoupled the database backend so that you can potentially run GAE on a variety of databases.
|
p
|
They currently provide support for URL_http://hbase.apache.org/ [HBase] and URL_http://www.hypertable.org/ [Hypertable] ( URL_https://launchpad.net/appscale [ref] ).
|
o
|
AppScale is open source and lets you run your GAE app on EC2 or your own cluster.
|
p
|
Strange as this sounds, but there is a great deal of similarity between AppEngine Datastore and the Lotus Domino: you may need to write an abstraction layer to handle the two APIs, but the capabilities are quite similar.
|
p
|
However, you need to be very familar with both models to see the parallels.
|
o
|
Which is the standard Java crypto API?
|
o
|
I want to implement a tool in Java to learn more about cryptography.
|
o
|
I know that there is a security package with some crypto stuff inside.
|
o
|
Now I saw there is a dedicated javax.crypto package inside the SDK.
|
p
|
Where is the difference?
|
o
|
Are they both up to date?
|
o
|
I wanted to start my tool with some historical ciphers.
|
o
|
But it should not be limited to them.
|
o
|
So I need a nice abstraction through interfaces or something like that.
|
p
|
Whats the better choice of the two APIs?
|
o
|
Is there another API I should have a look at?
|
o
|
Thanks in advance.
|
o
|
To answer the question asked: javax.crypto deals with low level crypto: encryption, decryption, and hashing.
|
n
|
It's where the Cipher class is defined.
|
o
|
java.security deals with everything else: key management, certtificate management, and signatures.
|
o
|
Those interfaces abstract JCE providers, which implement specific algorithms.
|
o
|
Sun provides some, and BouncyCastle is another good one.
|
p
|
If you are planning some custom ciphers for which there is not already an implementation, you'll be implementing your own JCE provider, and specifically extending CODETERM1 .
|
o
|
It's not difficult, but you have to URL_http://java.sun.com/javase/6/docs/tech notes/guides/security/crypto/HowToImplAProvider.html [read-through-the- documentation-on-how-to-do-that] .
|
n
|
In order for the JCE to allow your provider, you will have to apply to Sun for a certificate, basically faxing them a signed statement that you are aware of the US export restrictions on crypto libraries.
|
o
|
It's a mix of the two packages.
|
o
|
URL_http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoS pec.html [Here] are the relevant docs .
|
o
|
Thanks.
|
o
|
But before further reading: Can you tell me if I can use this API to implement cryptogrphic algorithms which are not part of the JCA, yet.
|
o
|
E.g.
|
o
|
historical ciphers?
|
o
|
Thx.
|
o
|
JCA is just an API, it doesn't define ciphers.
|
o
|
The SPI (service provider interface) defines them, and you can extend the API to define your own.
|
o
|
You could take a look at URL_http://www.bouncycastle.org [The-Legion-of-the- Bouncy-Castle] .
|
o
|
When we tried to do something that was compatible with openssl, only bouncycastle worked.
|
o
|
The sun java security stuff was just too buggy to work in a compatible manner.
|
o
|
It should be compatible with itself, however.
|
o
|
Also: bouncycastle doesn't require you to run inside that security sandbox stuff (which is mostly for applets - remember them?
|
o
|
), so debugging the program actually becomes possible.
|
o
|
Check out URL_http://www.keyczar.org/ [keyczar] .
|
o
|
+1000 for Keyczar.
|
o
|
URL_http://www.jasypt.org [ URL_http://www.jasypt.org ] is also a good option.
|
p
|
URL_http://java.sun.com/j2se/1.5.0/docs/api/ [The-updated-docs] .
|
o
|
I have add another vote for Bouncy Castle.
|
o
|
I recently needed an encryption algorithm that worked across multiple platforms (Java & C#).
|
o
|
We tried to use the standard Java and C# encryption packages but we found too many issues with the encrypt/decrypt.
|
p
|
Looking around, Bouncy Castle had a .NET implementation in addition to a Java.
|
o
|
Although, .NET implementation of Bouncy Castle is not well documented, it is essentially the same as Java.
|
p
|
Java Cryptography Extensions (The Practical Guide Series) by Jason Weiss.
|
o
|
I spent a lot on books, I have a lot of books, all of them very good.
|
p
|
( if you have a masters in math ) This book gets to the point, I had a cipher working in 5-6 hours.
|
p
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.