Posts

How can I use different JARs for compiling and testing in maven? -

I compile my program against javaee-api. But for junit testing I should use a specific implementation such as the javaizer of glassfish. To avoid errors such as java.lang.ClassFormatError: The attribute in the absent code attribute that is not original or intangible in the class file javax / persistence / persistence (see also). Avoid using the method, which is only available in the glassfish implementation, I want to compile my artifact with the normal API but execute the junit with the implementation jar. But both offer the same named classes and inferfaces, so the class loader gets bothered. What is the best way to solve this problem? Can I solve this problem with Maven? Thank you very much I think this is possible. In fact, when starting with version 2.0.9, Maven uses POM commands to create a classpath, so that you can manipulate it anymore. And if you combine this with you, then it is possible to achieve whatever you want. In practice, if you have a first javae...

SQL calculation (Oracle) -

I have two db tables fine and fine. Fine has Fields * Forrest_ID [PK] * Penalty_mount There are fields in Fine_payment - * OK_Pemment_ID [PK] * Forrest_ID * Payment_mount Therefore There may be several payments in every fine. How do I go about choosing the penalties that are not fully paid and show unpaid amount? Oracle DB choose fine_id, fine_amount ----- --------- ----------------------------------------- -------- - - Insert one here, if "payment" gives a new match -------------------------- --------- ----------------------------, (OK_AMIT - COLLACES (payment.lalp_pad, 0)) Submit Outstanding Outside Balance as Outside External (Select OK_ID, OK (OK_ID) from FIN_PAPMENT GROUP already deposited in form of Payment (payment_size, 0), OK. Do not pay any taxes on the payments.Fin_ID where fine.fin_mount edit : internal included to has been replaced with external external partner / P>

objective c - How do I declare a class property as an enum type -

मैं एक कस्टम एन्यूम घोषित करना चाहता हूं जैसे कि: enum menuItemType {LinkInternal = 0 , मेरे उद्देश्य के लिए एक प्रकार के रूप में: @interface MenuItem: NSObject, LinkExternal = 1, Image = 2, Movie = 3, MapQuery = 4} {NSMutableString * menuId; NSMutableString * शीर्षक; Enum मेनूइस्टमम टाईप * मेनू टाइप; NSMutableArray * सबमेनूआइटम; } लेकिन मैं अनिश्चित हूँ कि मुझे कहां की परिभाषा डालनी है - अगर मैं इसे @ इंटर्फ़ेस से पहले इसे वाक्यविन्यास रूप से गलत समझा यदि आप इस क्रम में किसी फ़ाइल में अपने दो कोड स्निपेट डालते हैं, तो आपको केवल enum घोषणा के अंत में एक ; जोड़ना होगा और आप एक enum चर के बजाय एक संकेतक के बजाय एक enum चर का उपयोग करने पर विचार करना चाह सकते हैं। यह देता है: enum menuItemType {LinkInternal = 0, LinkExternal = 1, Image = 2, मूवी = 3, नक्शा = 4}; @ इंटरफेस मेनूआईटीम: एनएसओबीकेम {एनएसएमयूटीएबल स्ट्रिंग * मेनूइंड; NSMutableString * शीर्षक; Enum मेनूइस्टमम टाईप मेनू टाइप करें; NSMutableArray * सबमेनूआइटम; }

criteria - Controlling Hibernate's generated subselect -

Consider the following three hibernate organizations: public class carriage {@OneToMany (fetch ======================= ================================================== ============ Consider the following criteria: criteria = getSession (). CreateCriteria (Car.class); & Lt; Cars & gt; Cars = criteria List (); (Car Car: Cars) {Start Hibernate.in (Car Gate Vahls ()); } Is there a way to control the subscribed query that will arise? In particular, I would like to be involved in the sub-genre so that hubbaps can also be obtained when the wheels are achieved. It can definitely be completed by replacing FetchType in EAGER, but I need some more ad hoc - the basis of the question On a query on As the code currently I will need to generate another selection to get Hubcaps. Yes, you can use these parameters but I do not remember how this has been done. Look for joining the criteria, though I would recommend using HQL, but the criteria is far more readable: Select f...

finance - MT4 Time based entry signal in MetaTrader4 -

Is there any code for any instance to generate during day based entry signals in MetaTrader 4? Like a particular hour and minute of each day I'm just working on such a function There is something to customize - I'm working on creating another common version which is going to be very big and tedious, it will need to include my file but without changing the code, it will have different charts Will be worth being able to stick on This will basically be a big case statement which I already have optimized for each individual time frame. What are you doing? Thanks for your interest in time and foreign exchange! bool existordertime (date time time, int octipat = -37) {// + -------------------------- ---------------------------------------- + / / | This function has been used for the inside of () and other conditions //. Usually called over time () Example: // | // | If (Existordertime (Timecourt ()) // | // | It accepts a datetime from time to time: // | 00:00 Many sec...

java - Need session key from facebook to get user data -

I have an external web app, which is essential to connect to Facebook and receive user data such as contacts. I successfully setup Facebook Connect on my website. Now I have to know how I can get the key to Facebook session and then call the Facebook Race Java API. Is there a clear tutorial that just does that? I have found this article to be really good:

javascript - Is it considered bad practice to use non-standard HTML attributes? -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मुझे यह बहुत सुविधाजनक है इस तरह की विशेषताओं को सेट करें: & lt; एक stackoverflowId = "123" & gt; ... & lt; / a & gt; और जावास्क्रिप्ट में: var soId = $ selectofA.attr ('stackoverflowId'); // jQuery क्या यह बिल्कुल अच्छा अभ्यास है? मुझे अभी तक इसकी कोई समस्या नहीं हुई है। एचटीएमएल 5 में आप इसे डेटा - * विशेषता: & lt; एक आईडी = "myDiv" डेटा-स्टैक ओवरफ्लोआईडी = "123" & gt; ... & lt; / a & gt; चूंकि आप jQuery का उपयोग कर रहे हैं, इसलिए आप को चेक कर सकते हैं। यह आपको क्लास विशेषता में JSON मेटाडेटा को संग्रहीत और पार्स करने की अनुमति देगा, और आपका मार्कअप अभी भी मान्य होगा। आप इस तरह अपना मेटाडेटा सम्मिलित कर पाएंगे: & Lt; a वर्ग = "your_class {stackoverflowId: '123'}" & gt; ... & lt; / a & gt; और इस प्रकार इसे निकालें: var डेटा = $ selectofA.metadata ();