• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

orm.xml

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a hell lot of tags for the orm.xml DD Reference in the In Action Book.

Do we get such questions in the exam?

And since we are there, for e.g. for the one-to-many mapping in orm.xml we have element target-entity.

Is this target-entity a fully qualified name? like com.example.... etc.! Java Beat has used plain names and no qualified names.
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In deployment descriptors as well as in entity mapping files fully qualified names have to be used.

But there's an exception: In entity mapping files there is an element <package> that enables you to use unqualified names for classes from that package.

I don't remember if it happened in the exam itself but at least in Enthuware questions abbreviations are oftenly used, for example

select new FullName(c.name, c.firstName) from Customer c, instead of
select new myPackage.FullName(c.name, c.firstName) from Customer c

or

@TransactionAttribute(Requires_New), instead of
@TransactionAttribute(TransactionAttributeType.Requires_New)

Don't worry about it.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. So I should not discard all the options and say 'none of the above' just because it does not use fully qualified names?

But how about the exam? Does the exam hammer you on all the tags? It would be a pain in the to remember persistence.xml, ejb-jar.xml and orm.xml tags. The tags in persistence.xml and ejb-jar.xml are logical and one can handle the questions but orm.xml kills you.

So how is the exam about DD.xmls, all the three above?
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Niranjan Deshpande wrote:
But how about the exam? Does the exam hammer you on all the tags? It would be a pain in the to remember persistence.xml, ejb-jar.xml and orm.xml tags. The tags in persistence.xml and ejb-jar.xml are logical and one can handle the questions but orm.xml kills you.


I asked (and still asking) this question many times in the "Sun Certification Results" forum. All of them told me there were no any question about XML and deployment descriptors on the exam.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! web.xml was manageable in SCWCD, but three DDs do not make a sense to cram!

Thanks!
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Treimin Clark wrote:
Niranjan Deshpande wrote:
But how about the exam? Does the exam hammer you on all the tags? It would be a pain in the to remember persistence.xml, ejb-jar.xml and orm.xml tags. The tags in persistence.xml and ejb-jar.xml are logical and one can handle the questions but orm.xml kills you.


I asked (and still asking) this question many times in the "Sun Certification Results" forum. All of them told me there were no any question about XML and deployment descriptors on the exam.

Don't forget that, the questions are selected randomly .
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About deployment descriptor tags, I don't think they are so difficult to remember, they resemble annotations.
But of course, you don't need to remember exact DTD/XML Schema.
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I should not discard all the options and say 'none of the above' just because it does not use fully qualified names?

I think there are no "none of the above" questions in the exam. At least in my own definitely not.

All of them told me there were no any question about XML and deployment descriptors on the exam.

I had deployment descriptor questions in the exam (also see this link). But I had no questions about mapping files.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic