persistence

Distributed Key/Value Stores that can run on Windows, and have .Net clients?

别等时光非礼了梦想. 提交于 2019-12-11 10:44:16
问题 As the title says, does anyone know of any Distributed Key/Value Stores that can run on Windows, and have .Net clients? Thank you Update: Sorry, forgot to add that it needs to be persisted. 回答1: You can use MongoDB, CouchDB or Cassandra. They are more than a key-value-store but they do run on windows and have .net clients. 回答2: Membase is a distributed key-value store that supports Windows and has a .NET client (Enyim). 回答3: App Fabric is Microsoft's solution. RavenDB can probably act as a

Does Eclipselink use (dynamic) bytecode weaving under Apache Felix?

萝らか妹 提交于 2019-12-11 10:43:14
问题 I'm using the Eclipselink bundles from Springsource (version 1.1.0) inside Apache Felix. My (JPA annotated) entity classes get persisted etc., so the basic mechanism works. However, I'm doubting that bytecode weaving is done. How can I verify if Eclipselink uses weaving on my classes? Is weaving generally supported when running in Felix? I didn't change anything about my configuration or startup scripts, do I have to? 回答1: See Eclipse docs - bottom of page; import org.eclipse.persistence

How to persist Python class with member variables that are also Python classes having large `numpy` array variables (so `pickle` no longer efficient)?

半城伤御伤魂 提交于 2019-12-11 09:44:05
问题 The use case: Python class stores large numpy arrays (large, but small enough that working with them in-memory is a breeze) in a useful structure. Here's a cartoon of the situation: main class: Environment ; stores useful information pertinent to all balls "child" class: Ball ; stores information pertinent to this particular ball Environment member variable: balls_in_environment (list of Ball s) Ball member variable: large_numpy_array (NxN numpy array that is large, but still easy to work

Why JPA Entity select result changes on each even query?

拈花ヽ惹草 提交于 2019-12-11 09:29:53
问题 My question is related to strange read/select behavior when same query returns different results after each call. Description of my situation is written below: I have the following code, returning list of documents from DB @RequestMapping(value={"/docs"}, method = RequestMethod.GET) @ResponseBody public ArrayList<Document> getMetaData(ModelMap modelMap) { return (ArrayList<Document>)documentDAO.getDocuments(); } DocumentDAO.getDocuments looks like public List<Document> getDocuments() { Query

Are there databases that bases durability on redundancy and not on persistent storage?

旧城冷巷雨未停 提交于 2019-12-11 09:15:02
问题 Sorry that the title isn't exactly obvious, but I couldn't word it better. We are right now using a conventional DB (oracle) as our job queue, and these "jobs" are consumed by some number of nodes (machines). So the DB server gets hit by these nodes, and we have to pay a lot for the software and hardware for this database server. Now, it occurred to me the other day that, 1) There are already multiple nodes in the system 2) "Jobs" may not be lost because of node failures, but there is no

Entity Manager / persistance file structure

偶尔善良 提交于 2019-12-11 08:28:24
问题 The title isn't clear as I couldn't think of one but, I have an EJB project and am trying to play with JPA. To create the entity manager I am injecting it in via annotations @PersistenceContext(unitName="testConnection") private EntityManager em; When I run a test query which I believe to be fine Query userQuery = em.createQuery("SELECT u FROM TestUser u WHERE u.username = 'test' u.password = 'test'"); tu = (TestUser) userQuery.getSingleResult(); I get an exception which points toward the EJB

How to use Hibernate with JSF

烈酒焚心 提交于 2019-12-11 07:47:10
问题 How to configure the jsf mavenized project with hibernate. While googling i found many guides related to this topic with different form of implementations. Please point out to refer a correct guide on this topic. i am just trying to do a simple database operation using hibernate. 回答1: If you use JPA hibernate all configurations will be similar as described in J2EE tutorial - Accessing Databases from Web Applications + you add your Maven dependencies (hibernate + db driver). 回答2: If you're

Android HTTP cookie

蓝咒 提交于 2019-12-11 07:39:43
问题 I am trying to maintain a loggedin user session between my android app and my Drupal website. In my research, it comes down to sending cookie(s) back to Drupal but I am struggling to find a resource to help guide me. Can anyone recommend a good tutorial that I can use to accomplish a cookie powered persistent connection between Android and Drupal, please? 回答1: Just in case anyone else got the same issue, I had similar problem and I was able to solve it by the following code: 1- Define

What is the way to persist a trie data tree with 27000 nodes in iOS using Swift?

假装没事ソ 提交于 2019-12-11 07:35:07
问题 I am building a Trie tree that will have about 27000 of the nodes below. Instead of recreating it every time on app start, I would like to persist. Because the child property is a dictionary to another node, I'm having trouble using NSCoding to archive and store it in the core data entity. Is there a way to store this node in Core Data? Or should I be using a different type of persistence? class TrieNode { var letter:Character var fullWord:Bool var leadingLetters:String var child = [Character

OpenJPA HSQLdb - how to handle IDs

为君一笑 提交于 2019-12-11 06:28:55
问题 I'm having trouble handling IDs of my databse tables using OpenJPA and HSQLdb. I created an Abstract class where I handle annotations and stuff to remap into the DB: // Property accessors @Id @Column(name = "IDTESTOBJEKT", unique = true, nullable = false) public Integer getIdtestobjekt() { return this.idtestobjekt; } public void setIdtestobjekt(Integer idtestobjekt) { this.idtestobjekt = idtestobjekt; } It's as a Facade used to create Testobjekts. Testobjekt test_obj = new Testobjekt(); test