datanucleus

JDOQL DATANUCLEUS filtering using String matches

爷,独闯天下 提交于 2020-01-01 19:41:17
问题 Using JDO with Datanucleus, I'm trying to filter some data from my database (using jdoql). I would like to use the regular expression for some sophisticated searchs, I found that JDO provide the String method "matches" that accepts a regular expression, and according to the DATANUCLEUS documentation, this method can receive any type of ExpReg: matches(String pattern) : Returns whether string matches the passed expression. The pattern argument follows the rules of java.lang.String.matches

Unable to get ID of newly-created JDO persistent entity using GAE/J DataNucleus plug-in version 2.1.2

[亡魂溺海] 提交于 2020-01-01 12:07:05
问题 My problem I am porting my application from version 1.x to 2.0 of the DataNucleus plug-in for GAE/J using the new 1.7.5 GAE/J SDK. This changes my JDO version from 2.3 to 3.0.1. My persistent entity class has a primary key of type encoded string, along with read-only access to the object’s numeric ID. Each instance is the sole member of its entity group (children and parent are linked by numeric ID only). Previously, I have been able to create and persist a new MyEntity instance and then

one to many relationship in java google ap engine caused error ?

偶尔善良 提交于 2019-12-29 09:40:19
问题 i have implement a system to save information about user . So i have aggregation at my class so the user class has list from contact class ...etc in the first page "test it's just for register the user just by phone number " that must save the user in database but this cause error when i deploye my project in Google app engine < 500 server error > and the other page for update the exist user who previously has been registered, so at this will add to the list which the user object has . user

Issues with migratiing from DataNucleus/JDO version v1 to v2

这一生的挚爱 提交于 2019-12-25 01:15:57
问题 I am using App Engine. I'm trying to upgrade from DataNucleus/JDO version v1 to v2. (JDO2.0 to JDO3.0) My code however has following problems under v2 (and works fine in v1) 1/ The result from a query gives a nullPointerException. Query q = pm.newQuery(Company.class, query); List<Company> companies = (List<Company>) q.execute(); // this should return a non-empty list for (Company company: companies) -> NullPointerException 2/ After persisting an object, I get a serialization error : public

Not able to connect to remote Hbase

不打扰是莪最后的温柔 提交于 2019-12-24 12:57:13
问题 i have a Hbase installation in distributed mode. The database is working fine and I am able to connect to the database if my webapp(spring + datanucleus JDO) is deployed on the same machine as the Hbase master. But if I run the same webapp on a different machine I am not able to connect to the HBase server. There are no exceptions at all and the webapp just stalls and after a few minutes times out. My config files are as follows: hbase-site.xml -> <configuration> <property> <name>hbase

Where is class definition for org/datanucleus/store/mapped/scostore/JoinSetStore

纵然是瞬间 提交于 2019-12-24 12:15:16
问题 I am trying to run Data Nucleus+JDO+google cloud sql. However I get a class not found for org/datanucleus/store/mapped/scostore/JoinSetStore. What Jar contains that? com.google.api.server.spi.SystemService invokeServiceMethod: null java.lang.ExceptionInInitializerError at com.example.e_math.NoteEndpoint.getPersistenceManager(NoteEndpoint.java:162) at com.example.e_math.NoteEndpoint.insertNote(NoteEndpoint.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

Runtime exception - Datanucleus enhancer

喜你入骨 提交于 2019-12-24 08:57:05
问题 In order to trigger the Datanucleus enhancer , I needed to do a dummy modify the Persistable class/Entity then save it again. However when triggered, throws/logs this error: java.lang.RuntimeException: Unexpected exception at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:76) at com.google.appengine.tools.enhancer.Enhance.<init>(Enhance.java:71) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:51) Caused by: java.lang.reflect.InvocationTargetException at

Scala and SparkSQL: ClassNotPersistableException

放肆的年华 提交于 2019-12-24 08:23:58
问题 I am trying to create two dataframe and join it using dataframe.join method. Here is scala code: import org.apache.spark.sql.SparkSession import org.apache.spark.SparkConf object RuleExecutor { def main(args: Array[String]): Unit = { val sparkConf = new SparkConf().setAppName(AppConstants.AppName).setMaster("local") val sparkSession = SparkSession.builder().appName(AppConstants.AppName).config(sparkConf).enableHiveSupport().getOrCreate() import sparkSession.sql sql(s"CREATE DATABASE test")

Bi-directional one-to-many relationship in google app engine using JPA

橙三吉。 提交于 2019-12-22 20:42:58
问题 I want to create entity group in GAE Datastore such that one city have contain multiple suburbans. Following is my code :- //city.java @JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="@id") @Entity public class City { @Id private String name; @OneToMany(mappedBy="city", cascade=CascadeType.ALL) private Suburban[] suburbans; public String getName() { return name; } public void setName(String name) { this.name = name; } public Suburban[] getSuburbans() {

Bi-directional one-to-many relationship in google app engine using JPA

為{幸葍}努か 提交于 2019-12-22 20:42:11
问题 I want to create entity group in GAE Datastore such that one city have contain multiple suburbans. Following is my code :- //city.java @JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="@id") @Entity public class City { @Id private String name; @OneToMany(mappedBy="city", cascade=CascadeType.ALL) private Suburban[] suburbans; public String getName() { return name; } public void setName(String name) { this.name = name; } public Suburban[] getSuburbans() {