[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Business logic
ijb
do-not-reply at jboss.com
Tue Jan 8 13:42:46 EST 2008
Is it possible to embed some business logic within hibernate mapping files? Is this a good approach/scalable?
For example, lets say that I want to persist and map the following class in hibernate:
| public class Device {
| private String id;
|
| public Device(String id) {
| this.id = id+"foo";
| }
| ...getID, setID...
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118028#4118028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118028
More information about the jboss-user
mailing list