-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Annotations w/o EntityBeans
PostPosted: Tue May 24, 2005 9:19 am 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Hibernate version: 3.0.4
Name and version of the database you are using: MySQL 4.1.12

I'm using Tomcat, Struts, Hibernate and MySQL. Is it possible to use Hibernate Annotations 3.0beta1 to generate the mapping files for MySQL? i.e. without using EntityBeans -- Tomcat is only a servlet container, not a full-gledged J2EE-Appserver.

If so, where can I find some code samples?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 11:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
EJB3 Entity beans are not EJB components, they are plain POJO classes. So what you request work out of the box.

In other words,
<class name="MyClass"> == @Entity public class MyClass { ...}

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.