eclipselink

Eclipse Fonts Zoom out & Zoom in Issue

懵懂的女人 提交于 2019-12-05 10:22:55
How to Zoom in and Zoom out text in Eclipse? I found plugins but I can not Install Manually Kindly tell me the procedure to install different Plugins in Eclipse. I asked this question after facing lot of issue using Android development tools(Eclipse). Check out this link and you will love it Eclipse-Fonts First you have to open eclipse, in help Menu, find "Install new Softwares" paste the below link in "Works with" text Box http://eclipse-fonts.googlecode.com/svn/trunk/FontsUpdate/ and press Enter, in the below box you will see "Eclipse-fonts", now press the next buttons..... and you have done

EclipseLink : No Persistence provider for EntityManager named

房东的猫 提交于 2019-12-05 07:30:53
I'd like to create one Bundle that is able to use Java Persistence. To achieve this, I've created a plugin project within Eclipse. In my project, I've created a persistence.xml file into META-INF. I've aslo added in my MANIFEST.mf (into the depencies) those 3 packages : javax.persistence.jar org.eclipse.persistence.jar org.eclipse.persistence.jar Then, in my Activator I use this lines to create an EntityManager : factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); EntityManager em = factory.createEntityManager(); To execute my bundle, I've made a product configuration.

Adding the latest EclipseLink version to a Netbeans project?

独自空忆成欢 提交于 2019-12-05 06:35:21
问题 I am developing JSF applicationi with JPA using EclipseLink as the persistence provider using Netbeans. The default version of EclipseLink is 2.0 with Netbeans 7.1, but I badly need the new addition of create-or-extend-tables for eclipselink.ddl-generation which was introduced with 2.4 http://wiki.eclipse.org/EclipseLink/DesignDocs/368365. So I want to add EclipseLink 2.4 to my existing netbeans project, but failed. I followed How do you use EclipseLink 2.3 as persistence provider in NB 7? ,

How to set collection items for in-clause in jpql?

末鹿安然 提交于 2019-12-05 06:02:46
Is there a possiblity in JPA 2.0 to set a collection for in-clause in jpql-query? (I'm using EclipseLink) The next example fails: TypedQuery<Person> q = em.createQuery("select p from Person p where p.name in (?1)", Person.class); List<String> names = Arrays.asList(new String[] { "Bill Gates", "Steve Jobs" }); // THIS FAILS q.setParameter(1, names); List<Person> persons = q.getResultList(); for (Person p: persons) { System.out.println(p.getName()); } Is there another way to do it? Here is what the JPA 2.0 specification says about IN expressions: 4.6.9 In Expressions The syntax for the use of

JodaTime with JPA, PostgreSQL and NULL values

五迷三道 提交于 2019-12-05 03:01:32
I'm trying to persists JodaTime DateTime fields with JPA to PostgreSQL but run into troubles with null pointers to database NULL values. I'm working with the NetBeans 7 beta 2 IDE. The persistence implementation is EclipseLink 2.2.0 and I'm using an EclipseLink Converter to get the mapping to work. Here is the declaration of my field: @Converter( name="dateTimeConverter", converterClass=ejb.util.DateTimeConverter.class ) @Column(columnDefinition="TIMESTAMP WITH TIME ZONE") @Convert("dateTimeConverter") private DateTime testdate; The converter class: public class DateTimeConverter implements

Configuration of eclipselink + Spring MVC + MySql using Java Configuration (No XML configuration)

ぐ巨炮叔叔 提交于 2019-12-05 02:44:45
问题 I am trying to integrate eclipselink JPA into my Spring Web application. Is there any good guide oh how to configure eclipseLink for MySql database in Spring MVC using Java based configuration only? . No dispatcher-servlet.xml. I am familiar with Java based Spring configuration. (Using @Configuration, @EnableWebMvc, @ComponentScan, @EnableTransactionManagement etc). But not familiar with eclipseLink java based configuration in Spring MVC. Following is the pom.xml <project xmlns="http://maven

GAE CloudSQL with MySQL access denied

风流意气都作罢 提交于 2019-12-05 02:19:19
问题 I have a web application that is working fine under the following environment GWT 2.4.0 RestEasy 2.3.2.Final JAX-RS & JAXB Hibernate JPA 2.0 (hibernate-entitymanager + hibernate-validator) 4.2.0.Final MySQL 5.5.22 at localhost (Ubuntu 12.04) VMware 2.6 tomcat server The application is working successfully using JAX-RS, JAXB, Jackson JSON provider, Hibernate JPA annotations all mixed together into the same DTO. I am trying to port it to GAE CloudSQL. I am encountering MySQL access errors. I

JPA 2.1: Introducing Java 8 Date/Time API

时间秒杀一切 提交于 2019-12-05 01:46:24
I'd like to add support for the Java 8 Date/Time API (JSR-310) in my JPA-enabled application. It's clear that JPA 2.1 does not support the Java 8 Date/Time API . As a workaround, the most common advise is to use an AttributeConverter . In my existing application, I changed my entities to use LocalDate / LocalDateTime types for the column mapping fields and added legacy setter/getters for java.util.Date to them. I created corresponding AttributeConverter classes. My application does now fail when using Query.setParameter() with java.util.Date instances (it worked before the transition to the

How to apply Static Weaving Ant Task with Eclipse-Link JPA in Netbeans?

随声附和 提交于 2019-12-05 01:21:00
I am using Netbeans 7.1.1 and a Glassfish 3.1.2 server. As JPA provider I decided to use eclipse-link 2.3.0 which is shipped with Netbeans. Since I want to use lazy fetching and my project consists of roughly 45 JPA Entity classes which do have lots of relations among them, I decided to use static weaving . Moreover, the @Entity classes are in a separate Class Lib Project, whereas the persistence.xml resides in the EJB project. I already followed the instructions here: http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving I put the ant

Is @ManyToMany(mappedBy = … ) + @OrderColumn supported by the JPA?

我的梦境 提交于 2019-12-05 00:42:04
I have an entity mapped as following: @Entity @Table(name = "Groups") @IdClass(value = GroupId.class) public class Group implements Serializable { @Id @Column(name = "round_id") private Integer roundId; @Id @Column(name = "ordinal_nbr") private Integer ordinalNbr = 0; ... } It has a composite key (round_id, ordinal_nbr) to indicate the order of groups in a round. Now imagine a join table containing entities that link the ordered groups via a self reference (from Group to Group): CREATE TABLE GroupLinks ( parent_round_id INTEGER NOT NULL, parent_ordinal_nbr SMALLINT NOT NULL, child_round_id