ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
62

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity ... require XML metadata. You cannot define default listeners using annotations (at least in JPA 2.0 ... to do specifics actions when my objects are persisted, without using XML, and without defining listeners
11

javax.persistence.spi.PersistenceUnitInfo

-unlisted-classes element in the persistence.xml file. Returns: whether classes in the root ... corresponds to a jar-file element in the persistence.xml file. A URL will either be a file: URL ... .xml file or is provided at deployment or by the container. Returns: the JTA-enabled data source
2

JPA Tutorials

Tutorial Only basic Java experience is required in order to follow this tutorial. Web Application Tutorials The web application tutorials demonstrate how to use JPA in web applications. Understanding these tutorials requires some familiarity with basic concepts and principles of web applications in Java
2

Step 2: Entity Class and Persistence Unit

the [Provider and Database] step just click Finish to generate a default persistence.xml file ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml file that was added to the project (under Configuration Files). Open the persistence.xml file in
2

Step 2: Entity Class and Persistence Unit

the [Provider and Database] step click Finish to generate a default persistence.xml file ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml file ... the persistence.xml file in a text editor (by right clicking and selecting Edit or by double click
2

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java ... ; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class
2

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java ... org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class
2

Step 3: Add a Context Listener Class

if not existing yet) when the web application starts, by instantiating an EntityManagerFactory. The database will be closed when the web application stops (or when the web server shuts down), by ... > Other... Select Web > Web Application Listener and click Next. Enter GuestListener as the class name - use
2

Step 2: Entity Class and Persistence Unit

/persistence.xml file: Open the [New Folder] dialog box, e.g. by right clicking the project node (in ... > File, enter persistence.xml as file name and click Finish. Verify that a new persistence.xml file ... to the persistence.xml file: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http
2

Step 2: Entity Class and Persistence Unit

guests in the database. We also need to configure JPA by setting a META-INF/persistence.xml file ... the new META-INF folder in the [Project Explorer] window, select New > File, enter persistence.xml as file name and click Finish. Verify that a new persistence.xml file was created as shown below: Finally

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support