About NetBeans

forum_thread

The project does not contain a persistence unit

How do I fix this error/warning that Netbeans gives me?   ... How do I fix this error/warning that Netbeans gives me?   ... ObjectDB itself does not require a persistence unit, but NetBeans produces this warning because a persistence unit is required by JPA. ...

 
issue

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

I have marked this as CRITICAL because although there probably is no database integrity problem, the inability to robustly query relationship fields in a web application renders the ObjectDB system seemingly useless. objectdb-2.2.5_10 NetbeansIDE6.9.1 Glassfish3.01 client-server mode. odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. ... Test project file, complete Netbeans JavaEE JSF web app Screenshot of database showing ...

 
forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... 2.2.7 and 2.2.8 and GlassFish 3.1. I have attached my NetBeans 7.0 project to this email. It is a test project and not the main ... ... 61 more Netbeans project with abovementioned problem ...

 
forum_thread

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com.example.model" + ".*"); ... My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of ... is obviously not present when cleaning and building with Netbeans and moving the dist directory to a remote location. What are ...

 
forum_thread

Should I be able to persist a JFrame (or gui components in general)?

    I did the following: 1. (using Netbeans 8.02 & last available java 7 sdk) I sort of follow your tutorial(s) while applying the ideas to a sample that came with the IDE called GUIFormExamples (under samples). ...     I did the following: 1. (using Netbeans 8.02 & last available java 7 sdk) I sort of follow your ... the following. I had first tried without the EE version of Netbeans (and not having any separate Java EE stuff installed). What happened ...

 
forum_thread

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check" system property) The following is a detailed report on investigation of multiple issues that have been mentioned in the following forum postings and issue reports (but please do not visit them from here now, the diagnostics there are now obsolete): - Issue #282 - ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection ... - I have used both a console test app and a NetBeans web app in Glassfish; the initial report is limited to the console ... (especially concerning the Ant build). - The NetBeans project for the console app uses a post-compile, pre-deployment Ant ...

 
forum_thread

Netbeans-Friendly Javadocs

Is there a .jar or URL that I can use to get javadocs that work within Netbeans code prediction popup boxes? I tried attaching the URL: http://www.objectdb.com/api/java/jpa/EntityManager to the EntityManager object in Netbeans but it gives me the error: Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager. ... or URL that I can use to get javadocs that work within Netbeans code prediction popup boxes? I tried attaching the URL: ... to the EntityManager object in Netbeans but it gives me the error: Javadoc not found. Either ... there may be a better place to add this documentation to NetBeans. ObjectDB Support ObjectDB - Fast Object ...

 
forum_thread

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

Hi! Scenario: Copy attached DB into localhost ObjectDB server (I'm running 2.5.1_03). Open attached project JavaEE Maven with NetBeans (7.4 beta in my case). Start ObjectDB on localhost as server. Run project on Apache Tomee 1.5.2 standard. Take a look at NetBeans' output to see how many entities are found with field type GOOD. There are 2 ways generate the bug: ... Open attached project JavaEE Maven with NetBeans (7.4 beta in my case). Start ObjectDB on localhost as ... Apache Tomee 1.5.2 standard. Take a look at NetBeans' output to see how many entities are found with field type GOOD. ...

 
forum_thread

Glassfish 3.1.2.1 and ObjectDB 2.4.3

Hello, I tried to get the Guestbook tutorial run with Glassfish (see above) but it's not working. When I try to add a guest I got a HTTP Status 404 Wich versions of ObjectDB should I use? Thanks ... 22:31 OK, I run the NetBeans/JPA Java EE 6 Guestbook with following url: ... I just tried the Java EE GuestBook tutorial with NetBeans 7.2 + GlassFish 3.1.2.1 + ObjectDB 2.4.3 and it worked. Please try: Download and install NetBeans 7.2. Download and extract ObjectDB 2.4.3. ...

 
issue

Super class' field access fails

I have a base class: public abstract class HotObject extends BaseObject {   private Integer activity;   protected HotObject() {     activity = 1;   }   public Integer getActivity() {     return activity;   }   public void setActivity(Integer activity) {     this.activity = activity;   } ... Hm.. maybe I was fooled by NetBeans. It is complaining about the missing id field in the base class. But ... The missing @Entity annotation in the base class. Seems NetBeans has a bug here? Or is there a JPA annotation available to tell that ...