-->
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: Error Hibernate!!!!
PostPosted: Fri Nov 24, 2006 4:14 am 
Newbie

Joined: Fri Nov 24, 2006 3:48 am
Posts: 1
I create myClass.

MyClass.java
public class MyClass{
private Long id;

private String from;
public Department() { }

public Department(String from) {
this.from = from;
}

public Long getId() { return id; }
public void setId(Long id) { this.id = id;}

public String getFrom() { return from; }
public void setFrom(String name) { this.from = From; }
}

file mapping: MyClass.bhm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="model">
<class name="MyClass">
<id name="id">
<generator class="native"/>
</id>

<property name="from"/>
</class>
</hibernate-mapping>


I test this object(MyClass). Hibernate throws Error.

If I change field "from" to other field.
for example: name.
I run OK.

summary:
I create my class with field: from, where... there are query word.
Hibernate is error.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 24, 2006 5:19 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
http://www.hibernate.org/ForumMailingli ... AskForHelp

_________________
Please don't forget to rate


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.