[jboss-user] [EJB 3.0] - Re: Disable ID generation for entity beans temporarily ?

Wolfgang Knauf do-not-reply at jboss.com
Tue Nov 7 11:25:43 EST 2006


Hi Tobias,

you could try to override the annotations with a deployment descriptor (orm.xml) and remove bold "generated value" attribute.

	<entity class="..." metadata-complete="true">
  | 		<table name="..."></table>
  | 		<attributes>
  | 			<id name="id">
  | 				<column name="ID" /> 
  | 				<generated-value/>
  | 			</id>
  | 			<basic name="...">
  | 				<column name="..." />
  | 			</basic>
  | 		</attributes>
  | 	</entity>


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983827#3983827

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983827



More information about the jboss-user mailing list