About package


Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse Java EE 6 (J2EE) web application.... dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting  New > Other... > Web > JSP ...


Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in NetBeans.... of the Main class with the following content: package tutorial ;   import javax. persistence . *; import ...


Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. #1 2012-05-15 15:36 Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in mem ...


@ElementCollection of type enum

Hi! I have in an entity called User with the following field: @ElementCollection(fetch = FetchType.EAGER) private Set<UserPermission> permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN } Use case: there are users which contain the first 2 permissions (BASIC and COACH, so the first 2 entries). ... private Set<UserPermission> permissions; package x. x . x . x   public enum UserPermission ...


JPA Web App Tutorial - Maven Project

The JPA Web Application tutorial for Tomcat / Jetty as a Maven project (download & run).... from the command line by: > mvn package jetty:run The current directory should be  guestbook-web ...


Schema evolution & renamed/moved enum

Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created a few instances of the class with this attribute of type com.pkg1.MyEnum. Now, I moved that enum to a different package and renamed it say com.pkg2.MyNewEnum. When I open my database again, the attribute is null. I don't seem to be able to use the <schema> tag in the config file because my enum is not an entity. What is a the proper way of handling the migration? Thanks, Farid  ... database. Now, I moved that enum to a different package and renamed it say com.pkg2.MyNewEnum, which is not the new type of my ...



An instance bound to a bundle.(Static Method of javax.jdo.spi.I18NHelper)


Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3]"b2"] ... for mapped and unmapped lists ?   package com. greensoft . objectdb . test . console ;   ...


OutOfMemoryError on search after update on DB created with DB Doctor

It looks like there may be an issue with the DB files created with DB Doctor in recovery mode. This is the scenario that results in the OutOfMemory exception problem (using Object DB 2.5.4_04): 1. We instruct Object DB to create a 1Gb DB file on initial start-up using: <database> <size initial="1024mb" resize="256mb" page="2kb" /> This happens as expected. ... just testing the use of DB Doctor to check DB files during package installation. We get the recovered file, but it is much smaller - see ...


Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: ... "Type ...  is not enhanced". We didn't added the package com.btc.ep.requirement.bl.internal.* to the enhancer. But what ...